Skip to content

Commit b4dc12f

Browse files
committed
Fix Clazy warnings
1 parent 8ee54c1 commit b4dc12f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/robots/common/twoDModel/src/engine/templates/details/templatesManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void TemplatesManager::clearTemplates(bool system)
3232

3333
void TemplatesManager::addTemplates(std::unordered_map<QString, XmlTemplate> &templates, bool isSystem)
3434
{
35-
for (auto &currentTemplate : templates) {
35+
for (auto &&currentTemplate : templates) {
3636
auto &targetMap = isSystem ? mSystemTemplates : mUserTemplates;
3737
const auto &prefix = isSystem ? sSystemLibraryNs : sUserLibraryNs;
3838
targetMap.emplace(prefix + currentTemplate.first, std::move(currentTemplate.second));

plugins/robots/common/twoDModel/src/engine/templates/details/templatesProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TemplatesProcessor
3333
TemplatesProcessor(TemplatesProcessor&&) noexcept = default;
3434
TemplatesProcessor& operator=(TemplatesProcessor&&) noexcept = default;
3535
virtual ~TemplatesProcessor() = default;
36-
TemplatesProcessor(details::TemplatesManager *manager) noexcept;
36+
explicit TemplatesProcessor(details::TemplatesManager *manager) noexcept;
3737

3838
/// Accepts xml as input using templates (<use> tags) as xml nodes. The function modifies the input
3939
/// xml element constraintsXml by transforming the tree. Each <use> in this tree will be replaced by

0 commit comments

Comments
 (0)