Преглед изворни кода

Replaced eolLF with normalizeEolLf.

Branimir Karadžić пре 7 година
родитељ
комит
53dfd981da
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      tools/shaderc/shaderc.cpp

+ 4 - 2
tools/shaderc/shaderc.cpp

@@ -652,8 +652,10 @@ namespace bgfx
 
 
 			int32_t len = bx::strLen(_input)+1;
 			int32_t len = bx::strLen(_input)+1;
 			char* temp = new char[len];
 			char* temp = new char[len];
-			bx::eolLF(temp, len, _input);
-			m_input += temp;
+			bx::StringView normalized = bx::normalizeEolLf(temp, len, _input);
+			std::string str;
+			str.assign(normalized.getPtr(), normalized.getTerm() );
+			m_input += str;
 			delete [] temp;
 			delete [] temp;
 
 
 			fppTag* tagptr = m_tagptr;
 			fppTag* tagptr = m_tagptr;