[Libreoffice-commits] core.git: 2 commits - sc/qa starmath/qa
Tor Lillqvist
tml at collabora.com
Fri Mar 11 07:34:53 UTC 2016
sc/qa/unit/helper/qahelper.cxx | 2 +-
starmath/qa/extras/mmlimport-test.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c914b6ccf1e2f7d4f7edc2ac6c502e5327dfe0ca
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Mar 11 09:29:09 2016 +0200
loplugin:redundantcast
Change-Id: I08d68a1ff4e798d1cace56fa18c7f70a48eb6231
diff --git a/starmath/qa/extras/mmlimport-test.cxx b/starmath/qa/extras/mmlimport-test.cxx
index 19f9f27..6a81acf 100644
--- a/starmath/qa/extras/mmlimport-test.cxx
+++ b/starmath/qa/extras/mmlimport-test.cxx
@@ -53,7 +53,7 @@ private:
OUString(),
OUString(),
"private:factory/smath*"));
- const_cast<SfxFilter*>(pFilter.get())->SetVersion(SOFFICE_FILEFORMAT_60);
+ pFilter.get()->SetVersion(SOFFICE_FILEFORMAT_60);
mxDocShell = new SmDocShell(SfxModelFlags::EMBEDDED_OBJECT |
SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS |
commit 53e8f648654a8d7404bbc3049328baa65473fb80
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Mar 11 09:27:42 2016 +0200
loplugin:redundantcast
Change-Id: Ia31f94cd55f16769d8354812619a5faac4623f7a
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index e94adc5..ad32a20 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -681,7 +681,7 @@ std::shared_ptr<utl::TempFile> ScBootstrapFixture::exportTo( ScDocShell* pShell,
aFilterName,
OUString(), nFormatType, nExportFormat, aFilterType, 0, OUString(),
OUString(), OUString("private:factory/scalc*") ));
- const_cast<SfxFilter*>(pExportFilter.get())->SetVersion(SOFFICE_FILEFORMAT_CURRENT);
+ pExportFilter.get()->SetVersion(SOFFICE_FILEFORMAT_CURRENT);
aStoreMedium.SetFilter(pExportFilter);
pShell->DoSaveAs( aStoreMedium );
pShell->DoClose();
More information about the Libreoffice-commits
mailing list