You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/07/25 10:01:45 UTC

svn commit: r1506839 - /openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx

Author: hdu
Date: Thu Jul 25 08:01:45 2013
New Revision: 1506839

URL: http://svn.apache.org/r1506839
Log:
#i122821# make SAL's custom allocator allocate() method standard compliant

Modified:
    openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx

Modified: openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx?rev=1506839&r1=1506838&r2=1506839&view=diff
==============================================================================
--- openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx (original)
+++ openoffice/branches/rejuvenate01/main/sal/inc/rtl/allocator.hxx Thu Jul 25 08:01:45 2013
@@ -120,8 +120,9 @@ public:
        are not enabled, e.g. GCC under Linux and it is
        in general not desired to compile sal with exceptions 
        enabled. */
-    pointer allocate (size_type n, const void* /*hint=NULL*/)
-    {       
+    pointer allocate (size_type n, const void* hint = 0)
+    {
+        (void)hint; // not used
         return reinterpret_cast<pointer>(
             rtl_allocateMemory(sal_uInt32(n * sizeof(T))));     
     }