Kaydet (Commit) 2af4221b authored tarafından Fakabbir Amin's avatar Fakabbir Amin Kaydeden (comit) Bartosz Kosiorek

tdf#103221 recoded clear if-else sequence

Change-Id: I8a3126427dca7b6c54282f48645f238f98ca62af
Reviewed-on: https://gerrit.libreoffice.org/34289Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarBartosz Kosiorek <gang65@poczta.onet.pl>
üst 432f605e
...@@ -4436,19 +4436,28 @@ OUString INetURLObject::getFSysPath(FSysStyle eStyle, ...@@ -4436,19 +4436,28 @@ OUString INetURLObject::getFSysPath(FSysStyle eStyle,
+ ((eStyle & FSysStyle::Dos) ? 1 : 0) + ((eStyle & FSysStyle::Dos) ? 1 : 0)
> 1) > 1)
{ {
eStyle = eStyle & FSysStyle::Vos if(eStyle & FSysStyle::Vos && m_aHost.isPresent() && m_aHost.getLength() > 0)
&& m_aHost.isPresent() {
&& m_aHost.getLength() > 0 ? eStyle= FSysStyle::Vos;
FSysStyle::Vos : }
hasDosVolume(eStyle) else
|| ((eStyle & FSysStyle::Dos) {
&& m_aHost.isPresent() if(hasDosVolume(eStyle) || ((eStyle & FSysStyle::Dos) && m_aHost.isPresent() && m_aHost.getLength() > 0))
&& m_aHost.getLength() > 0) ? {
FSysStyle::Dos : eStyle = FSysStyle::Dos;
eStyle & FSysStyle::Unix }
&& (!m_aHost.isPresent() || m_aHost.getLength() == 0) ? else
FSysStyle::Unix : {
FSysStyle(0); if(eStyle & FSysStyle::Unix && (!m_aHost.isPresent() || m_aHost.getLength() == 0))
{
eStyle = FSysStyle::Unix;
}
else
{
eStyle= FSysStyle(0);
}
}
}
} }
switch (eStyle) switch (eStyle)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment