sd/source/ui/view/Outliner.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit c59f37b9735a0ca122f29606508c50d25bbaa985 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Feb 4 20:41:30 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Feb 5 11:58:17 2022 +0100 be more stylistically standard Change-Id: I8fa978a5b58faa79c9c07b2c832a56b4d5230dd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129504 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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();