diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-12-12 13:49:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-12-13 18:09:16 +0100 |
commit | 6ba9e3323da5ddc588754d00b2468fe3f9708328 (patch) | |
tree | 2dfbb7bb14c84ff98f5334a504c76c2d2fc29bb8 /basic | |
parent | 92691a5b0afa149495615d7b269e74569b798944 (diff) |
loplugin:unusedfields
The sPassword field in SvtHistoryOptions became redundant
after
commit c0fffdc36df687fe8e4eff49e5a00d3a3c1eb370
Author: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Date: Mon Oct 2 12:35:21 2023 +0200
[API CHANGE] Remove deprecated Password config item
Change-Id: Ie0c4597da5cd510f405400c215110c1e357cb497
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160615
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 934297af3862..03998f30ca9b 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -300,15 +300,13 @@ void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::Cont } } -BasicError::BasicError( ErrCodeMsg nId, BasicErrorReason nR ) +BasicError::BasicError( ErrCodeMsg nId ) : nErrorId(std::move(nId)) - , nReason(nR) { } BasicError::BasicError( const BasicError& rErr ) : nErrorId(rErr.nErrorId) - , nReason(rErr.nReason) { } @@ -609,7 +607,7 @@ void BasicManager::ImpMgrNotLoaded( const OUString& rStorageName ) // pErrInf is only destroyed if the error os processed by an // ErrorHandler ErrCodeMsg aErrInf( ERRCODE_BASMGR_MGROPEN, rStorageName, DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::OPENMGRSTREAM); + aErrors.emplace_back(aErrInf); // Create a stdlib otherwise we crash! BasicLibInfo* pStdLibInfo = CreateLibInfo(); @@ -749,7 +747,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage ) if (!ImplLoadBasic( *xManagerStream, maLibs.front()->GetLibRef() )) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_MGROPEN, aStorName, DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::OPENMGRSTREAM); + aErrors.emplace_back(aErrInf); // and it proceeds ... } xManagerStream->Seek( nBasicEndOff+1 ); // +1: 0x00 as separator @@ -799,7 +797,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage ) else { ErrCodeMsg aErrInf( ERRCODE_BASMGR_LIBLOAD, aStorName, DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::STORAGENOTFOUND); + aErrors.emplace_back(aErrInf); } } while (nLibPos>=0); } @@ -868,7 +866,7 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora if ( !xBasicStorage.is() || xBasicStorage->GetError() ) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_MGROPEN, xStorage->GetName(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::OPENLIBSTORAGE); + aErrors.emplace_back(aErrInf); } else { @@ -877,7 +875,7 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora if ( !xBasicStream.is() || xBasicStream->GetError() ) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_LIBLOAD , pLibInfo->GetLibName(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::OPENLIBSTREAM); + aErrors.emplace_back(aErrInf); } else { @@ -900,7 +898,7 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora if ( !bLoaded ) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_LIBLOAD, pLibInfo->GetLibName(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::BASICLOADERROR); + aErrors.emplace_back(aErrInf); } else { @@ -1084,7 +1082,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage ) if( !nLib || nLib < maLibs.size() ) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_REMOVELIB, OUString(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::STDLIB); + aErrors.emplace_back(aErrInf); return false; } @@ -1120,7 +1118,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage ) if ( !xBasicStorage.is() || xBasicStorage->GetError() ) { ErrCodeMsg aErrInf( ERRCODE_BASMGR_REMOVELIB, OUString(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::OPENLIBSTORAGE); + aErrors.emplace_back(aErrInf); } else if (xBasicStorage->IsStream((*itLibInfo)->GetLibName())) { @@ -1255,7 +1253,7 @@ bool BasicManager::LoadLib( sal_uInt16 nLib ) else { ErrCodeMsg aErrInf( ERRCODE_BASMGR_LIBLOAD, OUString(), DialogMask::ButtonsOk ); - aErrors.emplace_back(aErrInf, BasicErrorReason::LIBNOTFOUND); + aErrors.emplace_back(aErrInf); } return bDone; } |