diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-05 20:53:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-06 12:23:39 +0200 |
commit | 0cd07e1fb7afc0a6831eaafabcead7e0c5f7ac3b (patch) | |
tree | 8f145203ea1b9cf43d5e41b0c99c12b3e7465575 /sc/source/ui/unoobj/afmtuno.cxx | |
parent | ef2066cdfe86019a3099b3530fb091ca2a4d2446 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I71d20c4d35b5123216da55a8b314400c93cae6fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167173
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj/afmtuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/afmtuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index fce07d2b9697..496e35684c47 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -433,7 +433,7 @@ void SAL_CALL ScAutoFormatObj::setName( const OUString& aNewName ) ScAutoFormat::iterator it = pFormats->begin(); std::advance(it, nFormatIndex); ScAutoFormatData *const pData = it->second.get(); - OSL_ENSURE(pData,"AutoFormat data not available"); + assert(pData && "AutoFormat data not available"); std::unique_ptr<ScAutoFormatData> pNew(new ScAutoFormatData(*pData)); pNew->SetName( aNewName ); @@ -504,7 +504,7 @@ uno::Any SAL_CALL ScAutoFormatObj::getPropertyValue( const OUString& aPropertyNa if (IsInserted() && nFormatIndex < pFormats->size()) { ScAutoFormatData* pData = pFormats->findByIndex(nFormatIndex); - OSL_ENSURE(pData,"AutoFormat data not available"); + assert(pData && "AutoFormat data not available"); bool bValue; bool bError = false; |