-Werror,-Wunused-function, plus additional clean-up and fixes
Change-Id: I4a2b67ba186e205a7cb4757a4f7120b9393823d0
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user