diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-26 12:17:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-01 10:08:43 +0200 |
commit | d11ed5a57e23fcc8d59ec40e7f52c7f54f7241a4 (patch) | |
tree | 1cac73d4879d1349a7c849aad892fa14560c03ca /dbaccess/source/ui/misc/DExport.cxx | |
parent | 5a9e9c8a22586a9309b53cc49f063115d31f5b38 (diff) |
convert dbaccess module from String to OUString
Change-Id: I110c925f8d955dfd841cdd1092c13df4d8205393
Diffstat (limited to 'dbaccess/source/ui/misc/DExport.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/DExport.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx index ba82f993d8c0..1c8c649d6a78 100644 --- a/dbaccess/source/ui/misc/DExport.cxx +++ b/dbaccess/source/ui/misc/DExport.cxx @@ -313,7 +313,7 @@ void ODatabaseExport::insertValueIntoColumn() sal_Int32 nPos = m_vColumns[nNewPos].first; if ( nPos != COLUMN_POSITION_NOT_FOUND ) { - if ( !m_sTextToken.Len() && pField->IsNullable() ) + if ( m_sTextToken.isEmpty() && pField->IsNullable() ) m_pUpdateHelper->updateNull(nPos,pField->GetType()); else { @@ -325,7 +325,7 @@ void ODatabaseExport::insertValueIntoColumn() sal_Int32 nNumberFormat = 0; double fOutNumber = 0.0; bool bNumberFormatError = false; - if ( m_pFormatter && m_sNumToken.Len() ) + if ( m_pFormatter && !m_sNumToken.isEmpty() ) { LanguageType eNumLang = LANGUAGE_NONE; sal_uInt32 nNumberFormat2( nNumberFormat ); @@ -411,7 +411,7 @@ void ODatabaseExport::insertValueIntoColumn() } } -sal_Int16 ODatabaseExport::CheckString(const String& aCheckToken, sal_Int16 _nOldNumberFormat) +sal_Int16 ODatabaseExport::CheckString(const OUString& aCheckToken, sal_Int16 _nOldNumberFormat) { SAL_INFO("dbaccess.ui", "ODatabaseExport::CheckString" ); DBG_CHKTHIS(ODatabaseExport,NULL); @@ -424,7 +424,7 @@ sal_Int16 ODatabaseExport::CheckString(const String& aCheckToken, sal_Int16 _nOl Reference< XNumberFormats > xFormats = xSupplier->getNumberFormats(); ensureFormatter(); - if ( m_pFormatter && m_sNumToken.Len() ) + if ( m_pFormatter && !m_sNumToken.isEmpty() ) { LanguageType eNumLang; sal_uInt32 nFormatKey(0); @@ -766,9 +766,9 @@ void ODatabaseExport::showErrorDialog(const ::com::sun::star::sdbc::SQLException SAL_INFO("dbaccess.ui", "ODatabaseExport::showErrorDialog" ); if(!m_bDontAskAgain) { - String aMsg(e.Message); - aMsg += '\n'; - aMsg += String( ModuleRes( STR_QRY_CONTINUE ) ); + OUString aMsg(e.Message); + aMsg += "\n"; + aMsg += ModuleRes( STR_QRY_CONTINUE ); OSQLWarningBox aBox( NULL, aMsg, WB_YES_NO | WB_DEF_NO ); if (aBox.Execute() == RET_YES) @@ -781,7 +781,7 @@ void ODatabaseExport::showErrorDialog(const ::com::sun::star::sdbc::SQLException void ODatabaseExport::adjustFormat() { SAL_INFO("dbaccess.ui", "ODatabaseExport::adjustFormat" ); - if ( m_sTextToken.Len() ) + if ( !m_sTextToken.isEmpty() ) { sal_Int32 nNewPos = m_bIsAutoIncrement ? m_nColumnPos+1 : m_nColumnPos; OSL_ENSURE((nNewPos) < static_cast<sal_Int32>(m_vColumns.size()),"Illegal index for vector"); @@ -794,7 +794,7 @@ void ODatabaseExport::adjustFormat() OSL_ENSURE((nColPos) < static_cast<sal_Int32>(m_vNumberFormat.size()),"m_vFormatKey: Illegal index for vector"); OSL_ENSURE((nColPos) < static_cast<sal_Int32>(m_vColumnSize.size()),"m_vColumnSize: Illegal index for vector"); m_vNumberFormat[nColPos] = CheckString(m_sTextToken,m_vNumberFormat[nColPos]); - m_vColumnSize[nColPos] = ::std::max<sal_Int32>((sal_Int32)m_vColumnSize[nColPos],(sal_Int32)m_sTextToken.Len()); + m_vColumnSize[nColPos] = ::std::max<sal_Int32>((sal_Int32)m_vColumnSize[nColPos], m_sTextToken.getLength()); } } eraseTokens(); @@ -804,9 +804,9 @@ void ODatabaseExport::adjustFormat() void ODatabaseExport::eraseTokens() { SAL_INFO("dbaccess.ui", "ODatabaseExport::eraseTokens" ); - m_sTextToken.Erase(); - m_sNumToken.Erase(); - m_sValToken.Erase(); + m_sTextToken = ""; + m_sNumToken = ""; + m_sValToken = ""; } void ODatabaseExport::ensureFormatter() |