diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-06 06:46:07 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-06 06:58:07 +0200 |
commit | 59af5e5b2983a341f8dd14bce56af86478badaa9 (patch) | |
tree | 84bf15e4cf93b1ea8c3410e6f7993305bf6ebb0f | |
parent | 44ba417d72a006fe8a9d30122a42bbdf7a7066ce (diff) |
coverity#735324: Unchecked return value
Change-Id: I7d6dcf0f64be944df1a94db27d1ee86f1bf2229c
-rw-r--r-- | sd/source/ui/func/futempl.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx index 0c5444c23cb7..8ff19b53d5c9 100644 --- a/sd/source/ui/func/futempl.cxx +++ b/sd/source/ui/func/futempl.cxx @@ -186,15 +186,14 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) case SID_STYLE_NEW_BY_EXAMPLE: { // at the moment, the dialog to enter the name of the template is still opened - mpView->AreObjectsMarked(); - SfxStyleSheetBase *p = pSSPool->Find(aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_ALL ); - if(p) - { - pSSPool->Remove(p); - p = 0; - } - pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF ); - pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME)); + SfxStyleSheetBase *p = pSSPool->Find(aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_ALL ); + if(p) + { + pSSPool->Remove(p); + p = 0; + } + pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF ); + pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME)); } break; |