From 59af5e5b2983a341f8dd14bce56af86478badaa9 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 6 Jul 2014 06:46:07 +0200 Subject: coverity#735324: Unchecked return value Change-Id: I7d6dcf0f64be944df1a94db27d1ee86f1bf2229c --- sd/source/ui/func/futempl.cxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'sd') 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; -- cgit