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

-Werror,-Wunused-function, plus additional clean-up and fixes

Change-Id: I4a2b67ba186e205a7cb4757a4f7120b9393823d0
üst 8ab9ea00
...@@ -401,21 +401,22 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection, ...@@ -401,21 +401,22 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
namespace namespace
{ {
template < typename C > inline void append(OUStringBuffer s, C* d, sal_Int32 n); // Approximation of "#if sizeof (SQLWCHAR) == 4 && sizeof (wchar_t) == 4":
#if defined SQL_WCHART_CONVERT && defined SAL_UNICODE_NOTEQUAL_WCHAR_T
template <> inline void append(OUStringBuffer s, wchar_t* d, sal_Int32 n) BOOST_STATIC_ASSERT(sizeof (wchar_t) == 4);
void append(OUStringBuffer & s, wchar_t* d, sal_Int32 n)
{ {
assert(sizeof(wchar_t) == 4);
for (sal_Int32 i = 0; i < n; ++i) for (sal_Int32 i = 0; i < n; ++i)
{ {
s.appendUtf32(d[i]); s.appendUtf32(d[i]);
} }
} }
#else
template <> inline void append(OUStringBuffer s, sal_Unicode* d, sal_Int32 n) void append(OUStringBuffer & s, sal_Unicode* d, sal_Int32 n)
{ {
s.append(d, n); s.append(d, n);
} }
#endif
} }
OUString OTools::getStringValue(OConnection* _pConnection, OUString OTools::getStringValue(OConnection* _pConnection,
......
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