diff options
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 8 |
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(); |