diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-14 14:20:52 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-23 09:45:38 +0100 |
commit | fec1501374860983d837d482cd175d80f4635b6f (patch) | |
tree | 3a5d4650212d290cab358674591970403b422e35 /unotools/source/config/moduleoptions.cxx | |
parent | e777bda2398e2507bca7e13582f23cad0d2d8689 (diff) |
Use specific SvtModuleOptions::Is*Installed for clarity
Change-Id: Ibe64b9fcccf33471d96bb0fb1aa896cb456657f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177069
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unotools/source/config/moduleoptions.cxx')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index 4ffb97839100..ed1ef95e8dbd 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -875,48 +875,6 @@ void SvtModuleOptions::SetFactoryDefaultFilter( EFactory eFactory, m_pImpl->SetFactoryDefaultFilter( eFactory, sFilter ); } -bool SvtModuleOptions::IsMath() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::MATH ); -} - -bool SvtModuleOptions::IsChart() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::CHART ); -} - -bool SvtModuleOptions::IsCalc() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::CALC ); -} - -bool SvtModuleOptions::IsDraw() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::DRAW ); -} - -bool SvtModuleOptions::IsWriter() const -{ - std::unique_lock aGuard( impl_GetOwnStaticMutex() ); - return m_pImpl->IsModuleInstalled( EModule::WRITER ); -} - -bool SvtModuleOptions::IsImpress() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::IMPRESS ); -} - -bool SvtModuleOptions::IsDataBase() const -{ - // doesn't need mutex, never modified - return m_pImpl->IsModuleInstalled( EModule::DATABASE ); -} - OUString SvtModuleOptions::GetModuleName( EModule eModule ) const { switch( eModule ) |