summaryrefslogtreecommitdiff
path: root/sw/source/filter/basflt/iodetect.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-30 14:10:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-30 14:34:29 +0000
commit37b53e179d7727c817d175d8102e87f7f23e9bb8 (patch)
tree58c52c0a7835fa0415efab5e3f265687f1321de0 /sw/source/filter/basflt/iodetect.cxx
parent1c4fc13600e0466dc6d1816d3a0306db6566141a (diff)
there are two of these GetUserData()[0] tests, use startsWith for both
Change-Id: Iacb40220a87563a53a521b35efe208bb3b90e653
Diffstat (limited to 'sw/source/filter/basflt/iodetect.cxx')
-rw-r--r--sw/source/filter/basflt/iodetect.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index 64da6065df16..5c5f6a5941b9 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -171,7 +171,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
{
while ( pFilter )
{
- if( !pFilter->GetUserData().isEmpty() && 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( xStor, *pFilter ) )
+ if (pFilter->GetUserData().startsWith("C") && IsValidStgFilter(xStor, *pFilter ))
{
if (pFilter->IsOwnTemplateFormat())
{
@@ -206,7 +206,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
{
while ( pFilter )
{
- if( 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( *xStg, *pFilter ) )
+ if (pFilter->GetUserData().startsWith("C") && IsValidStgFilter(*xStg, *pFilter))
{
if (pFilter->IsOwnTemplateFormat())
{