diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-03-04 09:19:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-04 18:43:37 +0100 |
commit | 26671ac0bc69b3379043e6039882e06cd89f737d (patch) | |
tree | 18bea4238355b2cb5b3b1af4fd1d7364dcc22f86 /oox/source/helper | |
parent | 43ff788238857220ca9c7d2ea8cf6fd226f77966 (diff) |
adapt script to use setProperty instead of <<=
Diffstat (limited to 'oox/source/helper')
-rw-r--r-- | oox/source/helper/propertymap.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index 7f0c843cb70f..800aaabead3d 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -767,9 +767,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0) fprintf (stderr,"%f\n", floatValue); else if( value >>= boolValue ) { if (boolValue) - return "Any ((sal_Bool) sal_True)"; + return "(sal_Bool) sal_True"; else - return "Any ((sal_Bool) sal_False)"; + return "(sal_Bool) sal_False"; } else if( value >>= xNumRule ) { fprintf (stderr, "XIndexReplace\n"); @@ -882,7 +882,7 @@ void PropertyMap::dumpCode( Reference< XPropertySet > rXPropSet ) fprintf (stderr, "{\n"); const char* var = lclDumpAnyValueCode (rXPropSet->getPropertyValue (props [i].Name), level + 1); printLevel (level + 1); - fprintf (stderr,"aPropertyMap [PROP_%s] <<= %s;\n", name.getStr(), var); + fprintf (stderr,"aPropertyMap.setProperty(PROP_%s, %s);\n", name.getStr(), var); printLevel (level); fprintf (stderr, "}\n"); } catch (const Exception&) { |