Make OUStringLiteral1 a wrapper around UTF-16 instead of just ASCII

...not merely an ASCII character

Change-Id: Id2b381b35fe3a15574728ed973d60263dfef7249
Reviewed-on: https://gerrit.libreoffice.org/28446
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2016-08-28 09:47:27 +02:00
parent 0c8fa58a2d
commit 2c10714426
10 changed files with 38 additions and 48 deletions

View File

@@ -66,13 +66,6 @@ bool StringStatic::VisitVarDecl(VarDecl const* varDecl)
if (ignoreLocation(varDecl)) {
return true;
}
// We could use OUStringLiteral1 here, but we'd need to update OUStringLiteral1 to allow BMP chars first:
if (compiler.getSourceManager().getFilename(varDecl->getLocation())
== SRCDIR "/chart2/inc/SpecialUnicodes.hxx")
{
return true;
}
QualType qt = varDecl->getType();
if (!varDecl->hasGlobalStorage()
|| !varDecl->isThisDeclarationADefinition()