diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-02 20:46:02 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-03 01:20:21 +0100 |
commit | eddee22b0eed069c3ee2929c9b36a9b4fb05f130 (patch) | |
tree | 6ace29c24dfc58407049cef21d6af314f7624e14 /sd | |
parent | 6ed52ecfed5781659cd27ff9aea5d0a04be77cd1 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: Id7af9a6eaefc8b49a790eb299620c4fa97067a11
Reviewed-on: https://gerrit.libreoffice.org/64429
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/stlfamily.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx index 54680db5d510..62eab7b25e43 100644 --- a/sd/source/core/stlfamily.cxx +++ b/sd/source/core/stlfamily.cxx @@ -148,7 +148,7 @@ SdStyleSheet* SdStyleFamily::GetSheetByName( const OUString& rName ) { // we assume that we have only SdStyleSheets SdStyleSheet* pSdStyle = static_cast< SdStyleSheet* >( pStyle ); - if( pSdStyle && pSdStyle->GetApiName() == rName) + if (pSdStyle->GetApiName() == rName) { pRet = pSdStyle; break; |