diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-15 22:59:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-16 10:00:48 +0100 |
commit | a5247645b4d133056ded317b1ed0e9e590afcf4d (patch) | |
tree | 116e4a77deb4d3e7169f9fb6b92d55956c609a00 | |
parent | 84c9a4d5518fd2a986e09af50b72553214a24902 (diff) |
Clang -Wdangling-else.
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 29d3f4821023..9e3567e6701d 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 (;;) |