Skip to content

Commit

Permalink
FileSystem: fix warning about return value
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwarthog authored and morevnaproject committed Jun 18, 2016
1 parent 8074127 commit c6a4300
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synfig-core/src/synfig/filesystem.cpp
Expand Up @@ -121,7 +121,8 @@ String FileSystem::fix_slashes(const String &filename)
return fixed;
}

std::istream& FileSystem::safe_get_line(std::istream& is, String& t)
std::istream&
FileSystem::safe_get_line(std::istream& is, String& t)
{
t.clear();
//code from http://stackoverflow.com/questions/6089231/getting-std-ifstream-to-handle-lf-cr-and-crlf
Expand Down Expand Up @@ -153,6 +154,8 @@ std::istream& FileSystem::safe_get_line(std::istream& is, String& t)
t += (char)c;
}
}

return is;
}

String FileSystem::get_real_uri(const String & /* filename */)
Expand Down

0 comments on commit c6a4300

Please sign in to comment.