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

@@ -148,7 +148,7 @@ PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args,PyObject *
std::string module = mod;
if (module.empty()) {
std::string ext = fi.extension(false);
std::string ext = fi.extension();
std::vector<std::string> modules = GetApplication().getImportModules(ext.c_str());
if (modules.empty()) {
PyErr_Format(PyExc_IOError, "Filetype %s is not supported.", ext.c_str());