diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-11 17:14:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-12 09:57:50 +0200 |
commit | 9e4d84daf279a63052cfd0aeebd2d67dfaf07c67 (patch) | |
tree | 23d223df34a6636182947a9bf042945e879dbff5 /sc/source | |
parent | 9b157d37f15b34720fced0b94d4541f4149a8947 (diff) |
drop document_io_logring.txt and use global logging
Change-Id: Ibda0ce925bc76355e636022c955077ac89e66cce
Reviewed-on: https://gerrit.libreoffice.org/36434
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/bcaslot.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/expop2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 56 |
3 files changed, 30 insertions, 30 deletions
diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx index 12ad9339a04d..e4cf53641c40 100644 --- a/sc/source/core/data/bcaslot.cxx +++ b/sc/source/core/data/bcaslot.cxx @@ -153,7 +153,7 @@ ScDocument::HardRecalcState ScBroadcastAreaSlot::CheckHardRecalcStateCondition() OSL_ENSURE( pShell, "Missing DocShell :-/" ); if ( pShell ) - pShell->SetError( SCWARN_CORE_HARD_RECALC, OSL_LOG_PREFIX ); + pShell->SetError(SCWARN_CORE_HARD_RECALC); pDoc->SetAutoCalc( false ); eState = ScDocument::HARDRECALCSTATE_ETERNAL; diff --git a/sc/source/filter/excel/expop2.cxx b/sc/source/filter/excel/expop2.cxx index 289ffb78fc62..e2fdfecf1a0a 100644 --- a/sc/source/filter/excel/expop2.cxx +++ b/sc/source/filter/excel/expop2.cxx @@ -106,7 +106,7 @@ FltError ExportBiff5::Write() SvxImportMSVBasic aBasicImport( *pDocShell, *xRootStrg ); const ErrCode nErr = aBasicImport.SaveOrDelMSVBAStorage( true, EXC_STORAGE_VBA_PROJECT ); if( nErr != ERRCODE_NONE ) - pDocShell->SetError( nErr, OSL_LOG_PREFIX ); + pDocShell->SetError(nErr); } pExcDoc->ReadDoc(); // ScDoc -> ExcDoc diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 3fc6d41bd1cb..226032910265 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -456,7 +456,7 @@ bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const css::uno::Reference< css bRet = aImport.Import(ImportFlags::All, nError); if ( nError ) - pLoadMedium->SetError( nError, OSL_LOG_PREFIX ); + pLoadMedium->SetError(nError); processDataStream(*this, aImport.GetImportPostProcessData()); @@ -615,10 +615,10 @@ bool ScDocShell::Load( SfxMedium& rMedium ) } if (!bRet && !rMedium.GetError()) - rMedium.SetError( SVSTREAM_FILEFORMAT_ERROR, OSL_LOG_PREFIX ); + rMedium.SetError(SVSTREAM_FILEFORMAT_ERROR); if (rMedium.GetError()) - SetError( rMedium.GetError(), OSL_LOG_PREFIX ); + SetError(rMedium.GetError()); InitItems(); CalcOutputFactor(); @@ -941,7 +941,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) } if ( !bSuccess ) - SetError( ERRCODE_IO_ABORT, OSL_LOG_PREFIX ); // this error code will produce no error message, but will break the further saving process + SetError(ERRCODE_IO_ABORT); // this error code will produce no error message, but will break the further saving process } #endif @@ -958,7 +958,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) if( RET_NO == aBox->Execute()) { - SetError( ERRCODE_IO_ABORT, OSL_LOG_PREFIX ); // this error code will produce no error message, but will break the further saving process + SetError(ERRCODE_IO_ABORT); // this error code will produce no error message, but will break the further saving process } } SAL_FALLTHROUGH; @@ -1101,7 +1101,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); } else bRet = true; @@ -1130,7 +1130,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); if( ( eError & ERRCODE_WARNING_MASK ) == ERRCODE_WARNING_MASK ) bRet = true; @@ -1167,13 +1167,13 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError == SCWARN_IMPORT_RANGE_OVERFLOW) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); bRet = true; } else if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); } else bRet = true; @@ -1255,7 +1255,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); } else if (!GetError() && (bOverflowRow || bOverflowCol || bOverflowCell)) { @@ -1263,7 +1263,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) FltError nWarn = (bOverflowRow ? SCWARN_IMPORT_ROW_OVERFLOW : (bOverflowCol ? SCWARN_IMPORT_COLUMN_OVERFLOW : SCWARN_IMPORT_CELL_OVERFLOW)); - SetError( nWarn, OSL_LOG_PREFIX); + SetError(nWarn); } bSetColWidths = true; bSetSimpleTextColWidths = true; @@ -1295,7 +1295,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); bRet = ( eError == SCWARN_IMPORT_RANGE_OVERFLOW ); } else @@ -1333,7 +1333,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); if( ( eError & ERRCODE_WARNING_MASK ) == ERRCODE_WARNING_MASK ) bRet = true; @@ -1369,7 +1369,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) } if ( eError != eERR_OK && !GetError() ) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); bSetColWidths = true; bSetSimpleTextColWidths = true; bSetRowHeights = true; @@ -1380,7 +1380,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError( eError, OSL_LOG_PREFIX ); + SetError(eError); if( ( eError & ERRCODE_WARNING_MASK ) == ERRCODE_WARNING_MASK ) bRet = true; } @@ -1406,7 +1406,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); if( ( eError & ERRCODE_WARNING_MASK ) == ERRCODE_WARNING_MASK ) bRet = true; @@ -1426,7 +1426,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) } if ( eError != eERR_OK && !GetError() ) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); } else if (aFltName == pFilterHtml || aFltName == pFilterHtmlWebQ) { @@ -1458,7 +1458,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if (eError != eERR_OK) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); if( ( eError & ERRCODE_WARNING_MASK ) == ERRCODE_WARNING_MASK ) bRet = true; @@ -1477,12 +1477,12 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) } if ( eError != eERR_OK && !GetError() ) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); } else { if (!GetError()) - SetError(SCERR_IMPORT_NI, OSL_LOG_PREFIX); + SetError(SCERR_IMPORT_NI); } if (!bCalc3) @@ -2289,7 +2289,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) FltError eError = ScFormatFilter::Get().ScExportExcel5( rMed, &aDocument, eFormat, RTL_TEXTENCODING_MS_1252 ); if( eError && !GetError() ) - SetError( eError, OSL_LOG_PREFIX ); + SetError(eError); // don't return false for warnings bRet = ((eError & ERRCODE_WARNING_MASK) == ERRCODE_WARNING_MASK) || (eError == eERR_OK); @@ -2297,7 +2297,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) else { // export aborted, i.e. "Save without password" warning - SetError( ERRCODE_ABORT, OSL_LOG_PREFIX ); + SetError(ERRCODE_ABORT); } } else if (aFltName == pFilterAscii) @@ -2330,7 +2330,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) if (aDocument.GetTableCount() > 1) if (!rMed.GetError()) - rMed.SetError(SCWARN_EXPORT_ASCII, OSL_LOG_PREFIX); + rMed.SetError(SCWARN_EXPORT_ASCII); } } else if (aFltName == pFilterDBase) @@ -2371,7 +2371,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) if ( eError != eERR_OK ) { if (!GetError()) - SetError(eError, OSL_LOG_PREFIX); + SetError(eError); if ( bHasMemo && IsDocument( aTmpFile ) ) KillFile( aTmpFile ); } @@ -2391,7 +2391,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) { KillFile( aTmpFile ); if ( !GetError() ) - SetError( SCERR_EXPORT_DATA, OSL_LOG_PREFIX ); + SetError(SCERR_EXPORT_DATA); } } } @@ -2425,7 +2425,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) if (aDocument.GetTableCount() > 1) if (!rMed.GetError()) - rMed.SetError(SCWARN_EXPORT_ASCII, OSL_LOG_PREFIX); + rMed.SetError(SCWARN_EXPORT_ASCII); } } else if (aFltName == pFilterSylk) @@ -2467,14 +2467,14 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) SetError(*new StringErrorInfo( SCWARN_EXPORT_NONCONVERTIBLE_CHARS, aImExport.GetNonConvertibleChars(), - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageInfo), OSL_LOG_PREFIX); + ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageInfo)); } } } else { if (GetError()) - SetError(SCERR_IMPORT_NI, OSL_LOG_PREFIX); + SetError(SCERR_IMPORT_NI); } return bRet; } |