From b4a17edbc688b673032f361c5c9bb2d299f2453e Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 10 Jun 2017 21:55:07 +0200 Subject: [PATCH] Prevent GCC warning preventing rpm build control reaches end of non-void function --- renamingutility/filesystemitem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renamingutility/filesystemitem.cpp b/renamingutility/filesystemitem.cpp index 499cda1..f3e4cba 100644 --- a/renamingutility/filesystemitem.cpp +++ b/renamingutility/filesystemitem.cpp @@ -65,6 +65,7 @@ const QString &FileSystemItem::currentName() const case ItemStatus::Current: return m_name; } + return emptyStr(); } bool FileSystemItem::setCurrentName(const QString ¤tName) @@ -95,6 +96,7 @@ const QString &FileSystemItem::newName() const case ItemStatus::New: return m_name; } + return emptyStr(); } bool FileSystemItem::setNewName(const QString &newName) @@ -118,6 +120,7 @@ bool FileSystemItem::setNewName(const QString &newName) setName(newName); return true; } + return false; } FileSystemItem *FileSystemItem::findChild(const QString &name) const