[Libreoffice-commits] core.git: registry/tools

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Oct 19 14:41:30 UTC 2018


 registry/tools/fileurl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 726328d26cd274ce72f2db2d84e3e915a4d142a2
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 12:43:01 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 19 16:39:39 2018 +0200

    expression is excessive
    
    Change-Id: I9af0de0d0f3aed565ac396b15821812fd9922779
    Reviewed-on: https://gerrit.libreoffice.org/61994
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/registry/tools/fileurl.cxx b/registry/tools/fileurl.cxx
index 46f0ba7b1140..cabfb16e95da 100644
--- a/registry/tools/fileurl.cxx
+++ b/registry/tools/fileurl.cxx
@@ -52,7 +52,7 @@ OUString convertToFileUrl(char const * filename, sal_Int32 length)
     OUString uFileUrl;
     if (length > 0)
     {
-        if ((filename[0] == '.') || (filename[0] != SEPARATOR))
+        if (filename[0] != SEPARATOR)
         {
             // relative path name.
             OUString uWorkingDir;


More information about the Libreoffice-commits mailing list