diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-10 14:51:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-15 12:25:36 +0200 |
commit | 7c43784537119d519c724f8c3987ad4aedac10ca (patch) | |
tree | 83ea1267875f2cbb2e3138fdcb0c3cfbfd2b481d /sw/source/filter | |
parent | 2ce8bbbcb51cbe2dcd91f00dc38e41eb7fce7420 (diff) |
convert sw/inc/iodetect.hxx from String to OUString
Change-Id: I0badca2b6a1d547e862eb0cd7f2887af39c988f1
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index ea681fa9884b..e1138d3fb480 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -87,7 +87,7 @@ OUString SwIoDetect::IsReader(const sal_Char* pHeader, sal_uLong nLen_) const return bRet ? sName : OUString(); } -const String SwIoSystem::GetSubStorageName( const SfxFilter& rFltr ) +const OUString SwIoSystem::GetSubStorageName( const SfxFilter& rFltr ) { /* bei den StorageFiltern noch den SubStorageNamen setzen */ const OUString& rUserData = rFltr.GetUserData(); @@ -100,7 +100,7 @@ const String SwIoSystem::GetSubStorageName( const SfxFilter& rFltr ) return OUString(); } -const SfxFilter* SwIoSystem::GetFilterOfFormat(const String& rFmtNm, +const SfxFilter* SwIoSystem::GetFilterOfFormat(const OUString& rFmtNm, const SfxFilterContainer* pCnt) { SfxFilterContainer aCntSw( OUString(sSWRITER) ); @@ -194,7 +194,7 @@ void TerminateBuffer(sal_Char *pBuffer, sal_uLong nBytesRead, sal_uLong nBufferL /* Feststellen ob das File in dem entsprechenden Format vorliegt. */ /* Z.z werden nur unsere eigene Filter unterstuetzt */ -sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, const String& rFmtName) +sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, const OUString& rFmtName) { sal_Bool bRet = sal_False; @@ -269,8 +269,8 @@ sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, const String& rFmtName) /* returnt !! Der Returnwert ist der interne Filtername! */ /* rPrefFltName ist der interne Name des Filters, den der Benutzer im */ /* Open-Dialog eingestellt hat. */ -const SfxFilter* SwIoSystem::GetFileFilter(const String& rFileName, - const String& rPrefFltName, SfxMedium* pMedium) +const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName, + const OUString& rPrefFltName, SfxMedium* pMedium) { SfxFilterContainer aCntSw( OUString(sSWRITER) ); SfxFilterContainer aCntSwWeb( OUString(sSWRITERWEB) ); @@ -394,7 +394,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const String& rFileName, /* Ok, bis jetzt kein Filter gefunden, also befrage mal die */ /* "WORD 4 WORD" Filter */ - if( rFileName.Len() ) + if( !rFileName.isEmpty() ) { if( pMedium ) pMedium->CloseInStream(); |