diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-07-15 21:37:53 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-15 23:13:07 +0200 |
commit | 8e3bf1598fa95ac8d099e45ae4252e7654a6f590 (patch) | |
tree | fee929a0d120fc969360da42c3210050165d00a9 | |
parent | ba37e4062f538db7e51d6a64ba544eeddbc567cf (diff) |
avoid unwanted silent conversion to bool
Apparently there's no overload for const sal_Unicode*, so the pointer
gets silently converted to bool, but there's one for const char*.
Change-Id: I52bc13a19111a04c6d17029f44a262387aeff6d9
-rw-r--r-- | sw/source/filter/html/htmlatr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx index 4ef9f7fe89bc..25581eb3ce2d 100644 --- a/sw/source/filter/html/htmlatr.cxx +++ b/sw/source/filter/html/htmlatr.cxx @@ -2522,8 +2522,8 @@ Writer& OutHTML_SwTxtNode( Writer& rWrt, const SwCntntNode& rNode ) // #i120442#: if c is outside the unicode base plane output it as "&#******;" else if( c > 0xffff) { - OUString sOut("&#"); - sOut += OUString::number( (sal_uInt64)c ); + OString sOut("&#"); + sOut += OString::number( (sal_uInt64)c ); sOut += ";"; rWrt.Strm() << sOut.getStr(); } |