aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/IOUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-01 09:15:25 +0000
committersaturneric <[email protected]>2024-01-01 09:15:25 +0000
commit1cdba285be9bebd9b793fc6ae0369d201a0e713b (patch)
tree6f38e86b19044ba9ecbe9a520e150dd49cb992a8 /src/core/utils/IOUtils.cpp
parentfeat: fully test basical operations of archive and file (diff)
downloadGpgFrontend-1cdba285be9bebd9b793fc6ae0369d201a0e713b.tar.gz
GpgFrontend-1cdba285be9bebd9b793fc6ae0369d201a0e713b.zip
feat: improve file browser's functions and tidy up codes
Diffstat (limited to 'src/core/utils/IOUtils.cpp')
-rw-r--r--src/core/utils/IOUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/utils/IOUtils.cpp b/src/core/utils/IOUtils.cpp
index 23c37e7f..a11baf92 100644
--- a/src/core/utils/IOUtils.cpp
+++ b/src/core/utils/IOUtils.cpp
@@ -103,7 +103,7 @@ auto WriteFileGFBuffer(const std::filesystem::path& file_name, GFBuffer data)
auto CalculateHash(const std::filesystem::path& file_path) -> std::string {
// Returns empty QByteArray() on failure.
- QFileInfo info(QString::fromStdString(file_path.string()));
+ QFileInfo const info(QString::fromStdString(file_path.string()));
std::stringstream ss;
if (info.isFile() && info.isReadable()) {