Kaydet (Commit) 35279a7e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Ic179c3012ad99a97b11914bf7aefca58829621e0
üst e82bc17d
......@@ -267,8 +267,8 @@ throw ( provider::ScriptFrameworkErrorException,
OUString langKey("language");
OUString locKey("location");
if ( sfUri->hasParameter( langKey ) == sal_False ||
sfUri->hasParameter( locKey ) == sal_False ||
if ( !sfUri->hasParameter( langKey ) ||
!sfUri->hasParameter( locKey ) ||
( sfUri->getName().isEmpty() ) )
{
OUString errorMsg = "Incorrect format for Script URI: ";
......
......@@ -491,7 +491,7 @@ public:
virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
{ return cppu::UnoType<OUString>::get(); }
virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
{ return ( ( m_hEvents.empty() ? sal_False : sal_True ) ); }
{ return !m_hEvents.empty(); }
private:
typedef std::unordered_map< OUString, Any, OUStringHash,
......
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