diff options
Diffstat (limited to 'tools/source/fsys/urlobj.cxx')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index c31e61a429a1..9061bf19a981 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -626,10 +626,10 @@ INetURLObject::FSysStyle guessFSysStyleByCounting(sal_Unicode const * pBegin, && pEnd - pBegin <= std::numeric_limits< sal_Int32 >::max(), "guessFSysStyleByCounting(): Too big"); sal_Int32 nSlashCount - = eStyle & INetURLObject::FSYS_UNX ? + = (eStyle & INetURLObject::FSYS_UNX) ? 0 : std::numeric_limits< sal_Int32 >::min(); sal_Int32 nBackslashCount - = eStyle & INetURLObject::FSYS_DOS ? + = (eStyle & INetURLObject::FSYS_DOS) ? 0 : std::numeric_limits< sal_Int32 >::min(); while (pBegin != pEnd) switch (*pBegin++) @@ -4262,9 +4262,9 @@ bool INetURLObject::setFSysPath(OUString const & rFSysPath, sal_Unicode const * pFSysBegin = rFSysPath.getStr(); sal_Unicode const * pFSysEnd = pFSysBegin + rFSysPath.getLength(); - switch ((eStyle & FSYS_VOS ? 1 : 0) - + (eStyle & FSYS_UNX ? 1 : 0) - + (eStyle & FSYS_DOS ? 1 : 0)) + switch (((eStyle & FSYS_VOS) ? 1 : 0) + + ((eStyle & FSYS_UNX) ? 1 : 0) + + ((eStyle & FSYS_DOS) ? 1 : 0)) { case 0: return false; @@ -4433,9 +4433,9 @@ OUString INetURLObject::getFSysPath(FSysStyle eStyle, if (m_eScheme != INetProtocol::File) return OUString(); - if ((eStyle & FSYS_VOS ? 1 : 0) - + (eStyle & FSYS_UNX ? 1 : 0) - + (eStyle & FSYS_DOS ? 1 : 0) + if (((eStyle & FSYS_VOS) ? 1 : 0) + + ((eStyle & FSYS_UNX) ? 1 : 0) + + ((eStyle & FSYS_DOS) ? 1 : 0) > 1) { eStyle = eStyle & FSYS_VOS |