summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-04 20:41:30 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-08 11:53:04 +0100
commitad5f3db93d258f8ab08e74e40b1476437ed596d5 (patch)
tree9015caee863dd902687188afe66df039f012b937 /sd
parentbb5a8696dc85723e324d1201acd3f68c32220e24 (diff)
be more stylistically standard
Change-Id: I8fa978a5b58faa79c9c07b2c832a56b4d5230dd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129504 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit c59f37b9735a0ca122f29606508c50d25bbaa985) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129611 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 26c8347d5bf5..0122e434a87b 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -272,7 +272,7 @@ void SdOutliner::StartSpelling()
{
meMode = SPELL;
mbDirectionIsForward = true;
- mpSearchItem = nullptr;
+ mpSearchItem.reset();
}
/** Free all resources acquired during the search/spell check. After a
@@ -475,7 +475,7 @@ bool SdOutliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
if ( ! bAbort)
{
meMode = SEARCH;
- mpSearchItem = std::unique_ptr<SvxSearchItem>(pSearchItem->Clone());
+ mpSearchItem.reset(pSearchItem->Clone());
mbFoundObject = false;
@@ -1699,7 +1699,7 @@ bool SdOutliner::HandleFailedSearch()
bool bContinueSearch = false;
OutlinerView* pOutlinerView = getOutlinerView();
- if (pOutlinerView != nullptr && mpSearchItem != nullptr)
+ if (pOutlinerView && mpSearchItem)
{
// Detect whether there is/may be a prior match. If there is then
// ask the user whether to wrap around. Otherwise tell the user
@@ -1789,7 +1789,7 @@ void SdOutliner::StartConversion( LanguageType nSourceLanguage, LanguageType nT
meMode = TEXT_CONVERSION;
mbDirectionIsForward = true;
- mpSearchItem = nullptr;
+ mpSearchItem.reset();
mnConversionLanguage = nSourceLanguage;
BeginConversion();