]> git.saurik.com Git - wxWidgets.git/commitdiff
use explicit global scope for a couple of more occurrences of new
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Nov 2008 23:55:01 +0000 (23:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Nov 2008 23:55:01 +0000 (23:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/vector.h

index 2337d3d326b825b7cefb27d2316dc307dea38f45..898a0cc3996e7c77fc61ccd82797b217b697a0bd 100644 (file)
@@ -80,7 +80,7 @@ struct wxVectorMemOpsGeneric
         T* sourceptr = source;
         for ( size_t i = count; i > 0; --i, ++destptr, ++sourceptr )
         {
-            new(destptr) T(*sourceptr);
+            ::new(destptr) T(*sourceptr);
             sourceptr->~T();
         }
     }
@@ -92,7 +92,7 @@ struct wxVectorMemOpsGeneric
         T* sourceptr = source + count - 1;
         for ( size_t i = count; i > 0; --i, --destptr, --sourceptr )
         {
-            new(destptr) T(*sourceptr);
+            ::new(destptr) T(*sourceptr);
             sourceptr->~T();
         }
     }
@@ -309,7 +309,7 @@ public:
 
         // use placement new to initialize new object in preallocated place in
         // m_values and store 'v' in it:
-        new(place) value_type(v);
+        ::new(place) value_type(v);
 
         // now that we did successfully add the new element, increment the size
         // and disable moving the items back