diff options
Diffstat (limited to 'compilerplugins/clang/store/valueof.cxx')
-rw-r--r-- | compilerplugins/clang/store/valueof.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compilerplugins/clang/store/valueof.cxx b/compilerplugins/clang/store/valueof.cxx index 2b769a3e8cac..808e0c158c92 100644 --- a/compilerplugins/clang/store/valueof.cxx +++ b/compilerplugins/clang/store/valueof.cxx @@ -67,8 +67,6 @@ bool ConvertValueOf::VisitCallExpr( const CallExpr* call ) string arg0 = func->getParamDecl( 0 )->getType().getAsString(); if( arg0 == "sal_Bool" ) replaceText( call->getCallee()->getSourceRange(), "OString::boolean" ); - else if( arg0 == "sal_Char" ) - replaceText( call->getCallee()->getSourceRange(), "OString" ); else { replaceText( call->getCallee()->getSourceRange(), "OString::number" ); @@ -116,7 +114,7 @@ void ConvertValueOf::removeCast( const Expr* arg ) if( cast->getType()->isIntegerType() && castFrom->getType()->isIntegerType()) { string fromType = castFrom->getType().getAsString(); - if( fromType != "sal_Bool" && fromType != "bool" && fromType != "sal_Char" && fromType != "sal_Unicode" ) + if( fromType != "sal_Bool" && fromType != "bool" && fromType != "sal_Unicode" ) { if( const CXXFunctionalCastExpr* funcCast = dyn_cast< CXXFunctionalCastExpr >( cast )) { |