From c7da23795d07b054910ee053bdfe7dd89775cf8f Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Fri, 5 Aug 2016 19:16:46 +0900 Subject: [PATCH] Add static keyword to safeGetline(). --- tiny_obj_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index d0a7886..c77ffc8 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -252,7 +252,7 @@ struct obj_shape { // See // http://stackoverflow.com/questions/6089231/getting-std-ifstream-to-handle-lf-cr-and-crlf -std::istream &safeGetline(std::istream &is, std::string &t) { +static std::istream &safeGetline(std::istream &is, std::string &t) { t.clear(); // The characters in the stream are read one-by-one using a std::streambuf.