chore: DragInformation, use auto where possible

This commit is contained in:
sithlord48 2025-04-27 12:35:12 -04:00 committed by Nick Bolton
parent 84fbe48d35
commit 996af86b9b

View file

@ -79,7 +79,7 @@ std::string DragInformation::getDragFileExtension(std::string filename)
int DragInformation::setupDragInfo(DragFileList &fileList, std::string &output) int DragInformation::setupDragInfo(DragFileList &fileList, std::string &output)
{ {
int size = static_cast<int>(fileList.size()); auto size = static_cast<int>(fileList.size());
for (int i = 0; i < size; ++i) { for (int i = 0; i < size; ++i) {
output.append(fileList.at(i).getFilename()); output.append(fileList.at(i).getFilename());
output.append(","); output.append(",");
@ -122,7 +122,7 @@ std::string DragInformation::getFileSize(std::string &filename)
// check file size // check file size
file.seekg(0, std::ios::end); file.seekg(0, std::ios::end);
size_t size = (size_t)file.tellg(); auto size = (size_t)file.tellg();
stringstream ss; stringstream ss;
ss << size; ss << size;