Linter fixes

This commit is contained in:
David Carter
2025-03-12 12:11:51 -04:00
committed by Chris Hennes
parent ec1da540c6
commit dd59cce8e9
3 changed files with 4 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ public:
_type = type;
}
const std::shared_ptr<std::map<QString, std::shared_ptr<FolderTreeNode<T>>>> getFolder() const
std::shared_ptr<std::map<QString, std::shared_ptr<FolderTreeNode<T>>>> getFolder() const
{
assert(_type == NodeType::FolderNode);
return _folder;
@@ -87,7 +87,7 @@ public:
setType(NodeType::DataNode);
_data = data;
}
void setUUID(const QString uuid)
void setUUID(const QString& uuid)
{
setType(NodeType::DataNode);
_uuid = uuid;

View File

@@ -97,8 +97,6 @@ bool Library::isRoot(const QString& path) const
{
QString localPath = getLocalPath(path);
QString cleanPath = getLocalPath(QStringLiteral(""));
std::string pLocal = localPath.toStdString();
std::string pclean = cleanPath.toStdString();
return (cleanPath == localPath);
}