summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/swmodul1.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-11-14 18:53:16 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-24 07:43:07 +0100
commit2ca32d2905aaf42ca3feaae04a55500c708fe8ad (patch)
tree54f26a1bdbb787c6a0a61a7353509d30d7f90256 /sw/source/uibase/app/swmodul1.cxx
parent5166efaa646fdb53345009529ba2005abf9fb6c2 (diff)
Turn SW_MOD macro to a function
Change-Id: Ide1f6fd2fc8a80b31353a14e416505a2349cea2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177071 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/app/swmodul1.cxx')
-rw-r--r--sw/source/uibase/app/swmodul1.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx
index be12a460ab6d..96bde7096a1b 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -432,15 +432,15 @@ static Color lcl_GetAuthorColor(std::size_t nPos)
// same as SwPostItMgr::GetColorAnchor()
switch (nPos % 9)
{
- case 0: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR1).nColor;
- case 1: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR2).nColor;
- case 2: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR3).nColor;
- case 3: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR4).nColor;
- case 4: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR5).nColor;
- case 5: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR6).nColor;
- case 6: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR7).nColor;
- case 7: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR8).nColor;
- case 8: return SW_MOD()->GetColorConfig().GetColorValue(svtools::AUTHOR9).nColor;
+ case 0: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR1).nColor;
+ case 1: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR2).nColor;
+ case 2: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR3).nColor;
+ case 3: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR4).nColor;
+ case 4: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR5).nColor;
+ case 5: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR6).nColor;
+ case 6: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR7).nColor;
+ case 7: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR8).nColor;
+ case 8: return SwModule::get()->GetColorConfig().GetColorValue(svtools::AUTHOR9).nColor;
default: return COL_AUTO; // silence -Wreturn-type
}
}