From David Callu, warning fixes and removal of spaces at end of lines.
This commit is contained in:
@@ -65,6 +65,8 @@ std::string convertUTF16toUTF8(const wchar_t* source, unsigned sourceLength)
|
||||
#else
|
||||
//TODO: Implement for other platforms
|
||||
OSG_WARN << "ConvertUTF16toUTF8 not implemented." << std::endl;
|
||||
OSG_UNUSED(source);
|
||||
OSG_UNUSED(sourceLength);
|
||||
return std::string();
|
||||
#endif
|
||||
}
|
||||
@@ -97,6 +99,8 @@ std::wstring convertUTF8toUTF16(const char* source, unsigned sourceLength)
|
||||
#else
|
||||
//TODO: Implement for other platforms
|
||||
OSG_WARN << "ConvertUTF8toUTF16 not implemented." << std::endl;
|
||||
OSG_UNUSED(source);
|
||||
OSG_UNUSED(sourceLength);
|
||||
return std::wstring();
|
||||
#endif
|
||||
}
|
||||
@@ -126,6 +130,7 @@ std::string convertStringFromCurrentCodePageToUTF8(const char* source, unsigned
|
||||
|
||||
return convertUTF16toUTF8(sUTF16);
|
||||
#else
|
||||
OSG_UNUSED(sourceLength);
|
||||
return source;
|
||||
#endif
|
||||
}
|
||||
@@ -158,6 +163,7 @@ std::string convertStringFromUTF8toCurrentCodePage(const char* source, unsigned
|
||||
|
||||
return sDest;
|
||||
#else
|
||||
OSG_UNUSED(sourceLength);
|
||||
return source;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user