Base: fix google-explicit-constructor
This commit is contained in:
@@ -155,7 +155,7 @@ void Exporter::throwIfNoPermission(const std::string& filename)
|
||||
Base::FileInfo fi(filename);
|
||||
Base::FileInfo di(fi.dirPath());
|
||||
if ((fi.exists() && !fi.isWritable()) || !di.exists() || !di.isWritable()) {
|
||||
throw Base::FileException("No write permission for file", filename);
|
||||
throw Base::FileException("No write permission for file", fi);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user