summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-02 16:02:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-03 21:24:35 +0100
commitbccf34c19ae022b67565e212fa4ec0d5213947de (patch)
tree73c2d2e29ad8d15999cbfb2ff554efa1e502a35e /desktop
parent285289275d1cf1769080a208b55be984cd269e1e (diff)
ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index b2c817d71e3f..fe295b15dc45 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -108,8 +108,12 @@ static String impl_GetFilterFromExt( OUString aUrl, SfxFilterFlags nFlags,
}
if( pSfxFilter )
- aFilter = ( nFlags == SFX_FILTER_EXPORT ) ? pSfxFilter->GetFilterName() :
- pSfxFilter->GetServiceName();
+ {
+ if (nFlags == SFX_FILTER_EXPORT)
+ aFilter = pSfxFilter->GetFilterName();
+ else
+ aFilter = pSfxFilter->GetServiceName();
+ }
delete pMedium;
return aFilter;