Kaydet (Commit) 59af5e5b authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#735324: Unchecked return value

Change-Id: I7d6dcf0f64be944df1a94db27d1ee86f1bf2229c
üst 44ba417d
...@@ -186,15 +186,14 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) ...@@ -186,15 +186,14 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
case SID_STYLE_NEW_BY_EXAMPLE: case SID_STYLE_NEW_BY_EXAMPLE:
{ {
// at the moment, the dialog to enter the name of the template is still opened // 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 );
SfxStyleSheetBase *p = pSSPool->Find(aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_ALL ); if(p)
if(p) {
{ pSSPool->Remove(p);
pSSPool->Remove(p); p = 0;
p = 0; }
} pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF );
pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF ); pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME));
pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME));
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment