Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Saturday 08 of December 2012, Libreoffice Gerrit user wrote:
 xmloff/source/core/DocumentSettingsContext.cxx        |   42 +--
 xmloff/source/core/DomExport.cxx                      |    4
 xmloff/source/core/SettingsExportHelper.cxx           |   54 ++--
 xmloff/source/core/XMLEmbeddedObjectImportContext.cxx |    2
 xmloff/source/core/xmlexp.cxx                         |   10
 xmloff/source/core/xmlimp.cxx                         |  229
++++++------------ xmloff/source/core/xmlmultiimagehelper.cxx            | 
 16 -
 7 files changed, 140 insertions(+), 217 deletions(-)

New commits:
commit 649c6b38911e9b77d21efba5fa1d6affa9fc4b0e
Author: Chr. Rossmanith <ChrRossmanith@gmx.de>
Date:   Tue Dec 4 14:35:40 2012 +0100

    RTL_CONSTASCII_USTRINGPARAM clean up
...
diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx
b/xmloff/source/core/xmlmultiimagehelper.cxx index c2214f2..e060de1 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -33,37 +33,37 @@ namespace
         sal_uInt32 nRetval(0);

         // pixel formats first
-        if(rString.endsWithAsciiL(RTL_CONSTASCII_STRINGPARAM(".bmp")))
+        if(rString.endsWithAsciiL(".bmp", 4))
         {
             return 10;
         }
-        if(rString.endsWithAsciiL(RTL_CONSTASCII_STRINGPARAM(".gif")))
+        if(rString.endsWithAsciiL(".gif", 4))
...

 These should be rString.endsWith( ".gif" ) . Specifying the length manually 
is error-prone and unnecessary.

-- 
 Lubos Lunak
 l.lunak@suse.cz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.