diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 09:50:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 13:17:27 +0100 |
commit | 5089bdb234a93bcb62b597c18b8ab66048246b13 (patch) | |
tree | 0983967d89d9662b8484c88d2590cfdd7362fa43 /sw/inc/iodetect.hxx | |
parent | stray ' in string (diff) | |
download | core-5089bdb234a93bcb62b597c18b8ab66048246b13.tar.gz core-5089bdb234a93bcb62b597c18b8ab66048246b13.zip |
Related: fdo#38838 remove UniString::EqualsAscii
Change-Id: I55c85c1c44452c7fb6ac40591aea7177d054affe
Diffstat (limited to 'sw/inc/iodetect.hxx')
-rw-r--r-- | sw/inc/iodetect.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx index 39ca15f55268..b47ba35fb175 100644 --- a/sw/inc/iodetect.hxx +++ b/sw/inc/iodetect.hxx @@ -46,20 +46,19 @@ struct SwIoDetect { - const sal_Char* pName; - sal_uInt16 nLen; + const OUString sName; - inline SwIoDetect( const sal_Char *pN, sal_uInt16 nL ) - : pName( pN ), nLen( nL ) - {} + SwIoDetect(const OUString &rN) + : sName(rN) + { + } - inline int IsFilter( const String& rNm ) const + bool IsFilter( const OUString& rNm ) const { - return pName && rNm.EqualsAscii( pName, 0, nLen ); + return rNm.startsWith(sName); } - const sal_Char* IsReader( const sal_Char* pHeader, sal_uLong nLen_, - const String &rFileName, const String& rUserData ) const; + OUString IsReader(const sal_Char* pHeader, sal_uLong nLen_) const; }; enum ReaderWriterEnum { |