summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-06 06:46:07 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-06 06:58:07 +0200
commit59af5e5b2983a341f8dd14bce56af86478badaa9 (patch)
tree84bf15e4cf93b1ea8c3410e6f7993305bf6ebb0f /sd
parentcoverity#982181: Unchecked return value (diff)
downloadcore-59af5e5b2983a341f8dd14bce56af86478badaa9.tar.gz
core-59af5e5b2983a341f8dd14bce56af86478badaa9.zip
coverity#735324: Unchecked return value
Change-Id: I7d6dcf0f64be944df1a94db27d1ee86f1bf2229c
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/futempl.cxx17
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;