fix several gcc warnings

This commit is contained in:
wmayer
2016-11-08 14:31:08 +01:00
parent d2d927e760
commit ff2a361928
6 changed files with 15 additions and 13 deletions

View File

@@ -272,10 +272,8 @@ std::wstring FileInfo::toStdWString() const
#endif
}
std::string FileInfo::extension (bool complete) const
std::string FileInfo::extension () const
{
// complete not implemented
assert(complete==false);
std::string::size_type pos = FileName.find_last_of('.');
if (pos == std::string::npos)
return std::string();

View File

@@ -82,7 +82,7 @@ public:
* ext = fi.extension(); // ext = "gz"
*@endcode
*/
std::string extension (bool complete = false) const;
std::string extension () const;
/// Checks for a special extension, NOT case sensetive
bool hasExtension (const char* Ext) const;
//@}