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


Hi August,

great cleanup, and nicer error handling for sure - pushed as-is, one
question though:

--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -565,8 +565,8 @@ void ODBExport::exportConnectionData()
                 {
                     ::svt::OFileNotation aTransformer( sFileName );
                     ::rtl::OUStringBuffer sURL( aTransformer.get( ::svt::OFileNotation::N_URL ) 
);
-                    if ( sURL.charAt(sURL.getLength()-1) != '/' )
-                        sURL.append(sal_Unicode('/'));
+                    if (sURL[sURL.getLength() - 1] != '/')
+                        sURL.append('/');
 
                     
AddAttribute(XML_NAMESPACE_XLINK,XML_HREF,GetRelativeReference(sURL.makeStringAndClear()));
                 }
That one does not seem to check for sURL.getLength() being > 0
before - or is that ensured externally?

Cheers,

-- Thorsten

Attachment: pgpB7Ixohrw0_.pgp
Description: PGP signature


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.