Просмотр исходного кода

Replaced eolLF with normalizeEolLf.

Branimir Karadžić 7 лет назад
Родитель
Сommit
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;
 			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;
 
 			fppTag* tagptr = m_tagptr;