提交 6ea1fbba 编写于 作者: M Matt Pharr

Tokenizer constructor: checking the std::moved-from string is not useful...

上级 2434bfb8
......@@ -230,7 +230,7 @@ Tokenizer::Tokenizer(std::string str, std::string filename,
pos = contents.data();
end = pos + contents.size();
tokenizerMemory += contents.size();
CheckUTF(str.data(), str.size());
CheckUTF(contents.data(), contents.size());
}
#if defined(PBRT_HAVE_MMAP) || defined(PBRT_IS_WINDOWS)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册