summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-03-01 16:38:46 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-01 17:33:57 +0100
commitf138cf2c25c3ad5e9eec4e9682347e340618f839 (patch)
tree4c494900a7c4c5970591e279fbbb98de16d7cafe /sd
parent2c5acc396c2561da9892e5f58aff5694301d1ba2 (diff)
condition is always true because of wrongly placed )
Change-Id: Id5f2c623375419daa4433fc2f925921e6013846f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/epptso.cxx4
-rw-r--r--sd/source/filter/eppt/pptx-epptbase.cxx2
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx14
3 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 0fafe1dabc12..ad85bc0c0b08 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -990,7 +990,7 @@ bool PPTWriter::ImplGetText()
{
mnTextSize = mXText->getString().getLength();
::com::sun::star::uno::Any aAny;
- if ( GetPropertyValue( aAny, mXPropSet, OUString( "FontIndependentLineSpacing" ) ), sal_True )
+ if ( GetPropertyValue( aAny, mXPropSet, OUString( "FontIndependentLineSpacing" ), sal_True ) )
aAny >>= mbFontIndependentLineSpacing;
}
return ( mnTextSize != 0 );
@@ -3674,7 +3674,7 @@ void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, Esc
mnTextSize = mXText->getString().getLength();
::com::sun::star::uno::Any aAny;
- if ( GetPropertyValue( aAny, mXPropSet, OUString( "FontIndependentLineSpacing" ) ), sal_True )
+ if ( GetPropertyValue( aAny, mXPropSet, OUString( "FontIndependentLineSpacing" ), sal_True ) )
aAny >>= mbFontIndependentLineSpacing;
EscherPropertyContainer aPropOptSp;
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx
index 2cb89986beb3..d97930da203f 100644
--- a/sd/source/filter/eppt/pptx-epptbase.cxx
+++ b/sd/source/filter/eppt/pptx-epptbase.cxx
@@ -439,7 +439,7 @@ sal_Int32 PPTWriterBase::GetLayoutOffset( const ::com::sun::star::uno::Reference
{
::com::sun::star::uno::Any aAny;
sal_Int32 nLayout = 20;
- if ( GetPropertyValue( aAny, rXPropSet, OUString( "Layout" ) ), sal_True )
+ if ( GetPropertyValue( aAny, rXPropSet, OUString( "Layout" ), sal_True ) )
aAny >>= nLayout;
DBG(printf("GetLayoutOffset %" SAL_PRIdINT32 "\n", nLayout));
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index 06f21bb20c41..d906f81a9a5a 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -515,13 +515,13 @@ sal_uInt32 PortionObj::ImplGetTextField( ::com::sun::star::uno::Reference< ::com
OUString aFieldKind( aXTextField->getPresentation( sal_True ) );
if ( aFieldKind == "Date" )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ), sal_True ) )
{
bool bBool = false;
aAny >>= bBool;
if ( !bBool ) // Fixed DateFields does not exist in PPT
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "Format" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "Format" ), sal_True ) )
{
nFormat = *(sal_Int32*)aAny.getValue();
switch ( nFormat )
@@ -543,7 +543,7 @@ sal_uInt32 PortionObj::ImplGetTextField( ::com::sun::star::uno::Reference< ::com
}
else if ( aFieldKind == "URL" )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "URL" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "URL" ), sal_True ) )
rURL = *(OUString*)aAny.getValue();
nRetValue = 4 << 28;
}
@@ -557,13 +557,13 @@ sal_uInt32 PortionObj::ImplGetTextField( ::com::sun::star::uno::Reference< ::com
}
else if ( aFieldKind == "Time" )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ), sal_True ) )
{
bool bBool = false;
aAny >>= bBool;
if ( !bBool )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ), sal_True ) )
{
nFormat = *(sal_Int32*)aAny.getValue();
nRetValue |= ( ( ( 2 << 4 ) | nFormat ) << 24 ) | 0x800000;
@@ -581,13 +581,13 @@ sal_uInt32 PortionObj::ImplGetTextField( ::com::sun::star::uno::Reference< ::com
}
else if ( aFieldKind == "ExtTime" )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "IsFix" ), sal_True ) )
{
bool bBool = false;
aAny >>= bBool;
if ( !bBool )
{
- if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "Format" ) ), sal_True )
+ if ( GetPropertyValue( aAny, xFieldPropSet, OUString( "Format" ), sal_True ) )
{
nFormat = *(sal_Int32*)aAny.getValue();
switch ( nFormat )