Clean up checks of sal_Bool values
Change-Id: Ia05565077823d6efaeaeb35d3d80b51dd9a10d4c
This commit is contained in:
parent
1d3357ccf7
commit
f9290d3011
@ -106,7 +106,7 @@ NamedValueByNameAccess::getValue(const sal_Char * pName)
|
||||
bool
|
||||
UpdateCheckROModel::isAutoCheckEnabled() const
|
||||
{
|
||||
return sal_True == m_aNameAccess.getValue(AUTOCHECK_ENABLED).get< sal_Bool >();
|
||||
return m_aNameAccess.getValue(AUTOCHECK_ENABLED).get<bool>();
|
||||
}
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@ UpdateCheckROModel::isAutoCheckEnabled() const
|
||||
bool
|
||||
UpdateCheckROModel::isDownloadPaused() const
|
||||
{
|
||||
return sal_True == m_aNameAccess.getValue(DOWNLOAD_PAUSED).get< sal_Bool >();
|
||||
return m_aNameAccess.getValue(DOWNLOAD_PAUSED).get<bool>();
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,7 +163,7 @@ void XDatabaseRange::testRefresh()
|
||||
uno::Reference< beans::XPropertySet > xPropRow(xRow, UNO_QUERY_THROW);
|
||||
Any aAny = xPropRow->getPropertyValue( aHidden );
|
||||
|
||||
CPPUNIT_ASSERT(aAny.get<sal_Bool>() == sal_True);
|
||||
CPPUNIT_ASSERT(aAny.get<bool>());
|
||||
}
|
||||
|
||||
xDBRange->refresh();
|
||||
@ -177,7 +177,7 @@ void XDatabaseRange::testRefresh()
|
||||
uno::Reference< beans::XPropertySet > xPropRow(xRow, UNO_QUERY_THROW);
|
||||
Any aAny = xPropRow->getPropertyValue( aHidden );
|
||||
|
||||
CPPUNIT_ASSERT(aAny.get<sal_Bool>() == sal_False);
|
||||
CPPUNIT_ASSERT(!aAny.get<bool>());
|
||||
}
|
||||
|
||||
|
||||
|
@ -293,7 +293,7 @@ void Impl2::initialize(css::uno::Sequence< css::uno::Any > const & arguments)
|
||||
if (!(arguments.getLength() == 45
|
||||
&& (arguments[0] >>= arg0) && arg0.member == cppu::UnoType<sal_Int32>::get()
|
||||
&& (arguments[1] >>= arg1) && arg1.member == arg1b
|
||||
&& (arguments[2] >>= arg2) && arg2.member == sal_True
|
||||
&& (arguments[2] >>= arg2) && arg2.member
|
||||
&& (arguments[3] >>= arg3) && arg3.member == SAL_MIN_INT8
|
||||
&& (arguments[4] >>= arg4) && arg4.member == SAL_MIN_INT16
|
||||
&& (arguments[5] >>= arg5) && arg5.member == SAL_MIN_INT32
|
||||
@ -320,7 +320,7 @@ void Impl2::initialize(css::uno::Sequence< css::uno::Any > const & arguments)
|
||||
&& (arguments[19] >>= arg19) && arg19.member.getLength() == 1
|
||||
&& arg19.member[0] == arg1b
|
||||
&& (arguments[20] >>= arg20) && arg20.member.getLength() == 1
|
||||
&& arg20.member[0] == sal_True
|
||||
&& arg20.member[0]
|
||||
&& (arguments[21] >>= arg21) && arg21.member.getLength() == 1
|
||||
&& arg21.member[0] == SAL_MIN_INT8
|
||||
&& (arguments[22] >>= arg22) && arg22.member.getLength() == 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user