Kaydet (Commit) 4482f501 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: VarDecl, use "bool" instead of "sal_Bool" [loplugin:salbool]

This likely is a false warning or over-enthusiasm in the salbool plug-in, but
on the other hand, I don't understand why the recently added case needs to use
different coding idioms from the preceding ones in the function? So make the
code more uniform.

Change-Id: I518022c59f6bd54740676cba95670e78b9a40d19
üst 41538e2a
......@@ -1248,9 +1248,8 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf
break;
case HANDLE_PROP_LINE_SPACING_SHRINKS_FIRST_LINE:
{
sal_Bool const bTmp(mpDoc->getIDocumentSettingAccess().get(
IDocumentSettingAccess::PROP_LINE_SPACING_SHRINKS_FIRST_LINE));
rValue <<= bTmp;
sal_Bool bTmp = mpDoc->getIDocumentSettingAccess().get( IDocumentSettingAccess::PROP_LINE_SPACING_SHRINKS_FIRST_LINE);
rValue.setValue( &bTmp, ::getBooleanCppuType() );
}
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment