diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2018-04-12 21:53:29 +0300 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-04-17 09:59:42 +0200 |
commit | 66ed9797ba8f61994a187dfcc189f375dcd0cdcc (patch) | |
tree | 19dadc10a843b9d4b906b116b6c888af5b8e0c19 /sc | |
parent | 3564b46992fc30e212011c19043a2553178ccbca (diff) |
Simplify calls to Menu::CheckItem
in cui, dbaccess, vcl, sc, sd
Change-Id: I328d81cf6cd5a7e31fb21a758e4b2670e7df1b91
Reviewed-on: https://gerrit.libreoffice.org/52797
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 9ef08f34ee91..34df68b39cd9 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -609,13 +609,13 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) switch (pParentWindow->GetDropMode()) { case 0: - aDropMenu->CheckItem(aDropMenu->GetItemId("hyperlink")); + aDropMenu->CheckItem("hyperlink"); break; case 1: - aDropMenu->CheckItem(aDropMenu->GetItemId("link")); + aDropMenu->CheckItem("link"); break; case 2: - aDropMenu->CheckItem(aDropMenu->GetItemId("copy")); + aDropMenu->CheckItem("copy"); break; } diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 90851ec16417..dc7a07ecc42d 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -372,13 +372,13 @@ IMPL_LINK(ScNavigatorDlg, ToolBoxDropdownClickHdl, ToolBox *, pToolBox, void) switch (GetDropMode()) { case 0: - aPop->CheckItem(aPop->GetItemId("hyperlink")); + aPop->CheckItem("hyperlink"); break; case 1: - aPop->CheckItem(aPop->GetItemId("link")); + aPop->CheckItem("link"); break; case 2: - aPop->CheckItem(aPop->GetItemId("copy")); + aPop->CheckItem("copy"); break; } |