harmless gcc warnings
This commit is contained in:
parent
88107edef1
commit
3eb92cbe8a
|
@ -713,7 +713,7 @@ public:
|
|||
* \param stream The object providing the input stream
|
||||
* \param tokens The "tokens" in the next line
|
||||
*/
|
||||
inline static const void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens)
|
||||
inline static void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens)
|
||||
{
|
||||
if(stream.eof()) return;
|
||||
std::string line;
|
||||
|
@ -744,7 +744,7 @@ public:
|
|||
while (from<length);
|
||||
} // end TokenizeNextLine
|
||||
|
||||
inline static const void SplitToken(std::string token, int &vId, int &nId, int &tId, int mask)
|
||||
inline static void SplitToken(std::string token, int &vId, int &nId, int &tId, int mask)
|
||||
{
|
||||
std::string vertex;
|
||||
std::string texcoord;
|
||||
|
@ -760,12 +760,12 @@ public:
|
|||
if(mask & Mask::IOM_WEDGNORMAL) nId = atoi(normal.c_str()) - 1;
|
||||
}
|
||||
|
||||
inline static const void SplitVToken(std::string token, std::string &vertex)
|
||||
inline static void SplitVToken(std::string token, std::string &vertex)
|
||||
{
|
||||
vertex = token;
|
||||
}
|
||||
|
||||
inline static const void SplitVVTToken(std::string token, std::string &vertex, std::string &texcoord)
|
||||
inline static void SplitVVTToken(std::string token, std::string &vertex, std::string &texcoord)
|
||||
{
|
||||
vertex.clear();
|
||||
texcoord.clear();
|
||||
|
@ -794,7 +794,7 @@ public:
|
|||
}
|
||||
} // end of SplitVVTToken
|
||||
|
||||
inline static const void SplitVVNToken(std::string token, std::string &vertex, std::string &normal)
|
||||
inline static void SplitVVNToken(std::string token, std::string &vertex, std::string &normal)
|
||||
{
|
||||
vertex.clear();
|
||||
normal.clear();
|
||||
|
@ -824,7 +824,7 @@ public:
|
|||
}
|
||||
} // end of SplitVVNToken
|
||||
|
||||
inline static const void SplitVVTVNToken(std::string token, std::string &vertex, std::string &texcoord, std::string &normal)
|
||||
inline static void SplitVVTVNToken(std::string token, std::string &vertex, std::string &texcoord, std::string &normal)
|
||||
{
|
||||
vertex.clear();
|
||||
texcoord.clear();
|
||||
|
|
|
@ -540,7 +540,7 @@ namespace vcg
|
|||
* \param stream The object providing the input stream
|
||||
* \param tokens The "tokens" in the next line
|
||||
*/
|
||||
inline static const void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens)
|
||||
inline static void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens)
|
||||
{
|
||||
std::string line;
|
||||
do
|
||||
|
@ -558,7 +558,7 @@ namespace vcg
|
|||
if(from!=length)
|
||||
{
|
||||
to = from+1;
|
||||
while ( (line[to]!=' ' && line[to] != '\t' || line[to] == '\r') && to!=length)
|
||||
while ( (((line[to]!=' ') && (line[to] != '\t')) || (line[to] == '\r')) && to!=length)
|
||||
to++;
|
||||
tokens.push_back(line.substr(from, to-from).c_str());
|
||||
from = to;
|
||||
|
|
Loading…
Reference in New Issue