[Libreoffice-commits] .: 3 commits - scaddins/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Mar 1 12:39:47 PST 2011


 scaddins/source/analysis/analysis.cxx       |    3 +--
 scaddins/source/analysis/analysishelper.cxx |    2 +-
 scaddins/source/datefunc/datefunc.cxx       |    3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 403187d408caf5c3a5726c7145b9940b1ca270da
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 1 14:49:07 2011 +0000

    avoid implicit cast

diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index eeae6e1..2130b90 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1708,7 +1708,7 @@ sal_Bool Complex::ParseString( const STRING& rStr, Complex& rCompl )
 {
     rCompl.c = '\0';    // do not force a symbol, if only real part present
 
-    const sal_Unicode*		pStr = ( const sal_Unicode * ) rStr;
+    const sal_Unicode* pStr = rStr.getStr();
 
     if( IsImagUnit( *pStr ) && rStr.getLength() == 1)
     {
commit bf5da63fe67d07c5a71d6b30ac46913a204138b2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 1 14:48:46 2011 +0000

    pointless to go from char* to OString to char*

diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index d552cc8..9113aeb 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -359,8 +359,7 @@ void ScaDateAddIn::InitData()
         delete pResMgr;
 
     OString aModName( "date" );
-    pResMgr = ResMgr::CreateResMgr( (const sal_Char*) aModName,
-                                        aFuncLoc );
+    pResMgr = ResMgr::CreateResMgr( aModName.getStr(), aFuncLoc );
 
     if( pFuncDataList )
         delete pFuncDataList;
commit 76de0b51d021f32cf92cee75b91c1d3c5028b254
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 1 14:48:32 2011 +0000

    pointless to go from char* to OString to char*

diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index b07c863..512c68f 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -194,8 +194,7 @@ void AnalysisAddIn::InitData( void )
         delete pResMgr;
 
     OString				aModName( "analysis" );
-    pResMgr = ResMgr::CreateResMgr( ( const sal_Char* ) aModName,
-                                        aFuncLoc );
+    pResMgr = ResMgr::CreateResMgr( aModName.getStr(), aFuncLoc );
 
     if( pFD )
         delete pFD;


More information about the Libreoffice-commits mailing list