summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-17 11:14:36 +0200
committerNoel Grandin <noel@peralex.com>2015-03-17 11:15:28 +0200
commit5229726b4d4e7d76f410d221f8f8cd8abcfd5a19 (patch)
tree67432ed81e9439fcb98d16c428249f4172014222 /sfx2
parentDocxAttributeOutput::m_pFoot/EndnotesList: use std::unique_ptr (diff)
downloadcore-5229726b4d4e7d76f410d221f8f8cd8abcfd5a19.tar.gz
core-5229726b4d4e7d76f410d221f8f8cd8abcfd5a19.zip
loplugin: add Dialog to unusedvariablecheck
so that we find dialog that have been instantiated but not actually executed Change-Id: Ia308e832780627c0a8de71a9d64dabcb3b861a9c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/templatedlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 094bc968c2c0..972c328500a3 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -933,7 +933,7 @@ void SfxTemplateManagerDlg::OnTemplateImport ()
{
OUString aMsg(SfxResId(STR_MSG_ERROR_IMPORT).toString());
aMsg = aMsg.replaceFirst("$1",pFolder->maTitle);
- MessageDialog(this, aMsg.replaceFirst("$2",aTemplateList));
+ MessageDialog(this, aMsg.replaceFirst("$2",aTemplateList)).Execute();
}
}
}
@@ -956,7 +956,7 @@ void SfxTemplateManagerDlg::OnTemplateImport ()
{
OUString aMsg(SfxResId(STR_MSG_ERROR_IMPORT).toString());
aMsg = aMsg.replaceFirst("$1",mpLocalView->getCurRegionName());
- MessageDialog(this, aMsg.replaceFirst("$2",aTemplateList));
+ MessageDialog(this, aMsg.replaceFirst("$2",aTemplateList)).Execute();
}
}