From 996af86b9b33d0e9c6e3fb96e172189d8f2e4b10 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 27 Apr 2025 12:35:12 -0400 Subject: [PATCH] chore: DragInformation, use auto where possible --- src/lib/deskflow/DragInformation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/deskflow/DragInformation.cpp b/src/lib/deskflow/DragInformation.cpp index 2ca1e3ef6..0efb2ebc0 100644 --- a/src/lib/deskflow/DragInformation.cpp +++ b/src/lib/deskflow/DragInformation.cpp @@ -79,7 +79,7 @@ std::string DragInformation::getDragFileExtension(std::string filename) int DragInformation::setupDragInfo(DragFileList &fileList, std::string &output) { - int size = static_cast(fileList.size()); + auto size = static_cast(fileList.size()); for (int i = 0; i < size; ++i) { output.append(fileList.at(i).getFilename()); output.append(","); @@ -122,7 +122,7 @@ std::string DragInformation::getFileSize(std::string &filename) // check file size file.seekg(0, std::ios::end); - size_t size = (size_t)file.tellg(); + auto size = (size_t)file.tellg(); stringstream ss; ss << size;