@@ -63,7 +63,7 @@ class UDPHandlerImpl: public Runnable, public RefCountedObject
6363 static constexpr MsgSizeT BUF_STATUS_BUSY = -1 ;
6464 static constexpr MsgSizeT BUF_STATUS_ERROR = -2 ;
6565
66- UDPHandlerImpl (std::size_t bufListSize = 1000 , std::ostream* pErr = 0 ):
66+ UDPHandlerImpl (std::size_t bufListSize = 1000 , std::ostream* pErr = nullptr ):
6767 _thread (" UDPHandlerImpl" ),
6868 _stop (false ),
6969 _done (false ),
@@ -76,7 +76,7 @@ class UDPHandlerImpl: public Runnable, public RefCountedObject
7676 {
7777 }
7878
79- ~UDPHandlerImpl ()
79+ ~UDPHandlerImpl () override
8080 // / Destroys the UDPHandlerImpl.
8181 {
8282 stop ();
@@ -94,7 +94,7 @@ class UDPHandlerImpl: public Runnable, public RefCountedObject
9494 // / the pointers to the newly created guard/buffer.
9595 // / If mutex lock times out, returns null pointer.
9696 {
97- char * ret = 0 ;
97+ char * ret = nullptr ;
9898 if (_mutex.tryLock (10 ))
9999 {
100100 if (_buffers[sock].size () < _bufListSize) // building buffer list
@@ -145,7 +145,7 @@ class UDPHandlerImpl: public Runnable, public RefCountedObject
145145 _dataReady.set ();
146146 }
147147
148- void run ()
148+ void run () override
149149 // / Does the work.
150150 {
151151 while (!_stop)
@@ -336,7 +336,8 @@ class UDPHandlerImpl: public Runnable, public RefCountedObject
336336 using BufMap = std::map<poco_socket_t , BufList>;
337337 using BLIt = typename BufList::iterator;
338338 using BufIt = std::map<poco_socket_t , BLIt>;
339- using MemPool = Poco::FastMemoryPool<char [S]>;
339+ using BufArray = std::array<char , S>;
340+ using MemPool = Poco::FastMemoryPool<BufArray>;
340341
341342 void setStatusImpl (char *& pBuf, MsgSizeT status)
342343 {
0 commit comments