Kaydet (Commit) 37b53e17 authored tarafından Caolán McNamara's avatar Caolán McNamara

there are two of these GetUserData()[0] tests, use startsWith for both

Change-Id: Iacb40220a87563a53a521b35efe208bb3b90e653
üst 1c4fc136
...@@ -171,7 +171,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName) ...@@ -171,7 +171,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
{ {
while ( pFilter ) while ( pFilter )
{ {
if( !pFilter->GetUserData().isEmpty() && 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( xStor, *pFilter ) ) if (pFilter->GetUserData().startsWith("C") && IsValidStgFilter(xStor, *pFilter ))
{ {
if (pFilter->IsOwnTemplateFormat()) if (pFilter->IsOwnTemplateFormat())
{ {
...@@ -206,7 +206,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName) ...@@ -206,7 +206,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
{ {
while ( pFilter ) while ( pFilter )
{ {
if( 'C' == pFilter->GetUserData()[0] && IsValidStgFilter( *xStg, *pFilter ) ) if (pFilter->GetUserData().startsWith("C") && IsValidStgFilter(*xStg, *pFilter))
{ {
if (pFilter->IsOwnTemplateFormat()) if (pFilter->IsOwnTemplateFormat())
{ {
......
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