summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-27 10:08:03 +0200
committerNoel Grandin <noel@peralex.com>2015-03-02 08:59:18 +0200
commit3c866bb8e42554ac96d3588208e167e7786e2d00 (patch)
tree9214124ed0b7d8274c5609725ed72a97466bbfce /sc/source/ui/undo
parentf9ba16e44b2813dd1fc9b0e06994f67c6350f050 (diff)
replace SVX_SEARCHCMD_ constants with enum class
Change-Id: I675c488742219cc19624a21d1fc8e5033e7cbefa
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undoblk3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 494fd3dcfc2e..5b765052d421 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -979,7 +979,7 @@ void ScUndoReplace::Undo()
if (pUndoDoc) // only for ReplaceAll !!
{
- OSL_ENSURE(pSearchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL,
+ OSL_ENSURE(pSearchItem->GetCommand() == SvxSearchCmd::REPLACE_ALL,
"ScUndoReplace:: Wrong Mode");
SetViewMarkData( aMarkData );
@@ -997,7 +997,7 @@ void ScUndoReplace::Undo()
pDocShell->PostPaintGridAll();
}
else if (pSearchItem->GetPattern() &&
- pSearchItem->GetCommand() == SVX_SEARCHCMD_REPLACE)
+ pSearchItem->GetCommand() == SvxSearchCmd::REPLACE)
{
OUString aTempStr = pSearchItem->GetSearchString(); // toggle
pSearchItem->SetSearchString(pSearchItem->GetReplaceString());
@@ -1066,7 +1066,7 @@ void ScUndoReplace::Redo()
}
}
else if (pSearchItem->GetPattern() &&
- pSearchItem->GetCommand() == SVX_SEARCHCMD_REPLACE)
+ pSearchItem->GetCommand() == SvxSearchCmd::REPLACE)
{
rDoc.ReplaceStyle( *pSearchItem,
aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(),