Kaydet (Commit) eb37196a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more cppumaker "css" clean-up

...hopefully, all generated headers that use css (indirectly) include sal/types.h

Change-Id: Iaa40fa014d54b57b395eafda8b4f35ca395d55b0
üst 44b96b1d
...@@ -55,9 +55,9 @@ OString scopedCppName(OString const & type, bool ns_alias) ...@@ -55,9 +55,9 @@ OString scopedCppName(OString const & type, bool ns_alias)
} while( nPos != -1 ); } while( nPos != -1 );
OString s(tmpBuf.makeStringAndClear()); OString s(tmpBuf.makeStringAndClear());
if (ns_alias && s.indexOf("::com::sun::star::") == 0) if (ns_alias && s.startsWith("::com::sun::star::", &s))
{ {
return s.replaceAt(0, 18, "css::"); // nicer shorthand s = "::css::" + s; // nicer shorthand
} }
return s; return s;
...@@ -73,7 +73,7 @@ OString translateUnoToCppType( ...@@ -73,7 +73,7 @@ OString translateUnoToCppType(
"void", "::sal_Bool", "::sal_Int8", "::sal_Int16", "::sal_uInt16", "void", "::sal_Bool", "::sal_Int8", "::sal_Int16", "::sal_uInt16",
"::sal_Int32", "::sal_uInt32", "::sal_Int64", "::sal_uInt64", "::sal_Int32", "::sal_uInt32", "::sal_Int64", "::sal_uInt64",
"float", "double", "::sal_Unicode", "rtl::OUString", "float", "double", "::sal_Unicode", "rtl::OUString",
"::com::sun::star::uno::Type", "::com::sun::star::uno::Any" }; "::css::uno::Type", "::css::uno::Any" };
buf.append(cppTypes[sort]); buf.append(cppTypes[sort]);
} else { } else {
if (sort == codemaker::UnoType::SORT_INTERFACE_TYPE if (sort == codemaker::UnoType::SORT_INTERFACE_TYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment