From 9521b738518527b0c1713665282ba616b902cd01 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:30:25 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I18b1b0b92b106c5fd96c80472e279a7cfd380235 --- sc/qa/unit/helper/qahelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/qa/unit') 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(pPattern->GetStyleSheet()); // check parent style name OUString sExpected("Excel Built-in Date"); OUString sResult = pStyleSheet->GetName(); -- cgit