sd/source/ui/view/Outliner.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit ad5f3db93d258f8ab08e74e40b1476437ed596d5 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Feb 4 20:41:30 2022 +0000 Commit: Xisco Fauli <[email protected]> CommitDate: Tue Feb 8 11:53:04 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 <[email protected]> (cherry picked from commit c59f37b9735a0ca122f29606508c50d25bbaa985) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129611 Reviewed-by: Xisco Fauli <[email protected]> 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();
