diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-13 23:13:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-14 09:52:49 +0000 |
commit | 8cbfe4e211e1aafe6cab64682b3e326153bdfb1e (patch) | |
tree | 43e56395a2ca343807abbe5a0a9d60e3a6539ac2 /dbaccess/source/ui/dlg/dbfindex.cxx | |
parent | unused strings (diff) | |
download | core-8cbfe4e211e1aafe6cab64682b3e326153bdfb1e.tar.gz core-8cbfe4e211e1aafe6cab64682b3e326153bdfb1e.zip |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'dbaccess/source/ui/dlg/dbfindex.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/dbfindex.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx index 3fb9ff5361fd..ffba407621dd 100644 --- a/dbaccess/source/ui/dlg/dbfindex.cxx +++ b/dbaccess/source/ui/dlg/dbfindex.cxx @@ -52,7 +52,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::ucb; using namespace ::svt; -const ByteString aGroupIdent("dBase III"); +const rtl::OString aGroupIdent(RTL_CONSTASCII_STRINGPARAM("dBase III")); ////////////////////////////////////////////////////////////////////////// // Klasse ODbaseIndexDialog @@ -377,19 +377,19 @@ void ODbaseIndexDialog::Init() /////////////////////////////////////////////////////////////////////////// // fill the indexes list - ByteString aNDX; + rtl::OString aNDX; sal_uInt16 nKeyCnt = aInfFile.GetKeyCount(); - ByteString aKeyName; + rtl::OString aKeyName; String aEntry; for( sal_uInt16 nKey = 0; nKey < nKeyCnt; nKey++ ) { // does the key point to an index file ? aKeyName = aInfFile.GetKeyName( nKey ); - aNDX = aKeyName.Copy(0,3); + aNDX = aKeyName.copy(0,3); // yes -> add to the tables index list - if (aNDX == "NDX" ) + if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("NDX"))) { aEntry = rtl::OStringToOUString(aInfFile.ReadKey(aKeyName), osl_getThreadTextEncoding()); rTabInfo.aIndexList.push_back( OTableIndex( aEntry ) ); @@ -488,18 +488,18 @@ void OTableInfo::WriteInfFile( const String& rDSN ) const aInfFile.SetGroup( aGroupIdent ); // Erst einmal alle Tabellenindizes loeschen - ByteString aNDX; + rtl::OString aNDX; sal_uInt16 nKeyCnt = aInfFile.GetKeyCount(); sal_uInt16 nKey = 0; while( nKey < nKeyCnt ) { // Verweist der Key auf ein Indexfile?... - ByteString aKeyName = aInfFile.GetKeyName( nKey ); - aNDX = aKeyName.Copy(0,3); + rtl::OString aKeyName = aInfFile.GetKeyName( nKey ); + aNDX = aKeyName.copy(0,3); //...wenn ja, Indexfile loeschen, nKey steht dann auf nachfolgendem Key - if( aNDX == "NDX" ) + if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("NDX"))) { aInfFile.DeleteKey(aKeyName); nKeyCnt--; |