瀏覽代碼

Adapt the formatting

Kim Kulling 5 年之前
父節點
當前提交
e299f71cfe
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      include/assimp/StringUtils.h

+ 5 - 6
include/assimp/StringUtils.h

@@ -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