Adapt the formatting

pull/3158/head
Kim Kulling 2020-04-17 16:16:28 +02:00 committed by GitHub
parent 9c52fd7633
commit e299f71cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -145,7 +145,6 @@ std::string DecimalToHexa( T toConvert ) {
return result;
}
/// @fn Rgba2Hex
/// @brief translate RGBA to String
/// @param r aiColor.r
/// @param g aiColor.g
@ -153,14 +152,14 @@ std::string DecimalToHexa( T toConvert ) {
/// @param a aiColor.a
/// @param with_head #
/// @return The hexadecimal string, is empty in case of an error.
AI_FORCE_INLINE
std::string Rgba2Hex(int r, int g, int b, int a, bool with_head)
{
AI_FORCE_INLINE std::string Rgba2Hex(int r, int g, int b, int a, bool with_head) {
std::stringstream ss;
if (with_head)
if (with_head) {
ss << "#";
}
ss << std::hex << (r << 24 | g << 16 | b << 8 | a);
return ss.str();
return ss.str();
}
#endif // INCLUDED_AI_STRINGUTILS_H