summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:35 +0100
commit9521b738518527b0c1713665282ba616b902cd01 (patch)
tree1dd90b325c12751acc332b6c081096c47f0f86ed /sc/qa/unit
parent3ce8a7dab59b7a77e1223d1357e6c32c31e4fba6 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I18b1b0b92b106c5fd96c80472e279a7cfd380235
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/helper/qahelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index 7d27484b5459..d45340af7829 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -255,7 +255,7 @@ void testFormats(ScBootstrapFixture* pTest, ScDocument* pDoc, sal_Int32 nFormat)
if ( nFormat == XLSX )
{
pPattern = pDoc->GetPattern(1,1,3);
- ScStyleSheet* pStyleSheet = (ScStyleSheet*)pPattern->GetStyleSheet();
+ ScStyleSheet* pStyleSheet = const_cast<ScStyleSheet*>(pPattern->GetStyleSheet());
// check parent style name
OUString sExpected("Excel Built-in Date");
OUString sResult = pStyleSheet->GetName();