[Libreoffice-commits] .: tools/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Mon Jan 16 01:07:28 PST 2012


 tools/source/fsys/urlobj.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit a5247645b4d133056ded317b1ed0e9e590afcf4d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Jan 15 22:59:01 2012 +0100

    Clang -Wdangling-else.

diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 29d3f48..9e3567e 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -3089,7 +3089,9 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
 
             // Match <group>:
             if (INetMIME::isAlpha(*pPos))
+            {
                 for (sal_Unicode const * p = pPos + 1;; ++p)
+                {
                     if (p == pEnd || *p == nQueryDelimiter
                         || *p == nFragmentDelimiter)
                     {
@@ -3100,7 +3102,11 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
                     }
                     else if (!INetMIME::isAlphanumeric(*p) && *p != '+'
                              && *p != '-' && *p != '.' && *p != '_')
+                    {
                         break;
+                    }
+                }
+            }
 
             // Match <article>:
             for (;;)


More information about the Libreoffice-commits mailing list