diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-21 17:39:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-21 17:39:29 +0200 |
commit | 3391f02e1a4c19101a08a1061bfb6ef47100f281 (patch) | |
tree | b7e56afb44b2513c271a771e20bc717729d1d9a8 | |
parent | 5e18e8c597722f78ef8416dff2295dc08c110ceb (diff) |
String -> OUString
Change-Id: Iabb80c72f9e6aab3b58590299ce9f22e0ae1a5fa
-rw-r--r-- | vcl/aqua/source/gdi/salgdicommon.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/aqua/source/gdi/salgdicommon.cxx b/vcl/aqua/source/gdi/salgdicommon.cxx index d9c54d97618b..eedf607bf2fc 100644 --- a/vcl/aqua/source/gdi/salgdicommon.cxx +++ b/vcl/aqua/source/gdi/salgdicommon.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include "sal/config.h" + +#include <cstring> + #include <sal/types.h> #include <osl/endian.h> #include <osl/file.hxx> @@ -195,7 +199,8 @@ sal_Bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, TTGlobalFontInfo aTTInfo; ::GetTTGlobalFontInfo( pSftFont, &aTTInfo ); rInfo.m_nFontType = FontSubsetInfo::SFNT_TTF; - rInfo.m_aPSName = String( aTTInfo.psname, RTL_TEXTENCODING_UTF8 ); + rInfo.m_aPSName = OUString( + aTTInfo.psname, std::strlen(aTTInfo.psname), RTL_TEXTENCODING_UTF8 ); rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ), Point( aTTInfo.xMax, aTTInfo.yMax ) ); rInfo.m_nCapHeight = aTTInfo.yMax; // Well ... |