summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-04 20:41:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-05 11:58:17 +0100
commitc59f37b9735a0ca122f29606508c50d25bbaa985 (patch)
tree3271a801fb0a31837f3b97c06b8f71667b7febd4 /sd
parent824a84a894755f2ce41f4612f27d2e1110676c6d (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>
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 23353ba87c82..0e9b2fba833f 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
@@ -463,7 +463,7 @@ bool SdOutliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
if ( ! bAbort)
{
meMode = SEARCH;
- mpSearchItem = std::unique_ptr<SvxSearchItem>(pSearchItem->Clone());
+ mpSearchItem.reset(pSearchItem->Clone());
mbFoundObject = false;
@@ -1687,7 +1687,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
@@ -1777,7 +1777,7 @@ void SdOutliner::StartConversion( LanguageType nSourceLanguage, LanguageType nT
meMode = TEXT_CONVERSION;
mbDirectionIsForward = true;
- mpSearchItem = nullptr;
+ mpSearchItem.reset();
mnConversionLanguage = nSourceLanguage;
BeginConversion();