diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-17 11:14:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-17 11:15:28 +0200 |
commit | 5229726b4d4e7d76f410d221f8f8cd8abcfd5a19 (patch) | |
tree | 67432ed81e9439fcb98d16c428249f4172014222 /sfx2/source/doc | |
parent | bca6b66358ec26ab6797c72207fdb42066451462 (diff) |
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/source/doc')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 4 |
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(); } } |