diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-27 10:08:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-02 08:59:18 +0200 |
commit | 3c866bb8e42554ac96d3588208e167e7786e2d00 (patch) | |
tree | 9214124ed0b7d8274c5609725ed72a97466bbfce /basctl | |
parent | f9ba16e44b2813dd1fc9b0e06994f67c6350f050 (diff) |
replace SVX_SEARCHCMD_ constants with enum class
Change-Id: I675c488742219cc19624a21d1fc8e5033e7cbefa
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 10 | ||||
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index af77aec82b7e..d73ecd3899be 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -1273,17 +1273,17 @@ sal_uInt16 ModulWindow::StartSearchAndReplace( const SvxSearchItem& rSearchItem, bool const bForward = !rSearchItem.GetBackward(); sal_uInt16 nFound = 0; - if ( ( rSearchItem.GetCommand() == SVX_SEARCHCMD_FIND ) || - ( rSearchItem.GetCommand() == SVX_SEARCHCMD_FIND_ALL ) ) + if ( ( rSearchItem.GetCommand() == SvxSearchCmd::FIND ) || + ( rSearchItem.GetCommand() == SvxSearchCmd::FIND_ALL ) ) { nFound = pView->Search( rSearchItem.GetSearchOptions() , bForward ) ? 1 : 0; } - else if ( ( rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE ) || - ( rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE_ALL ) ) + else if ( ( rSearchItem.GetCommand() == SvxSearchCmd::REPLACE ) || + ( rSearchItem.GetCommand() == SvxSearchCmd::REPLACE_ALL ) ) { if ( !IsReadOnly() ) { - bool const bAll = rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE_ALL; + bool const bAll = rSearchItem.GetCommand() == SvxSearchCmd::REPLACE_ALL; nFound = pView->Replace( rSearchItem.GetSearchOptions() , bAll , bForward ); } } diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 1ec577b743bd..4d1bedb402e8 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -87,7 +87,7 @@ void Shell::ExecuteCurrent( SfxRequest& rReq ) // memorize item because of the adjustments... GetExtraData()->SetSearchItem(rSearchItem); sal_Int32 nFound = 0; - if (rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE_ALL) + if (rSearchItem.GetCommand() == SvxSearchCmd::REPLACE_ALL) { sal_uInt16 nActModWindows = 0; for (WindowTableIt it = aWindowTable.begin(); it != aWindowTable.end(); ++it) |