Skip to content

Commit c2297bb

Browse files
committed
Avoid CI warnings
1 parent e3ba869 commit c2297bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/auxiliary/TemplateFile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ namespace
1616
{
1717
template <typename T>
1818
static void
19-
call(Attributable &object, std::string const &name, Attribute attr)
19+
call(Attributable &object, std::string const &name, Attribute &attr)
2020
{
2121
object.setAttribute(name, attr.get<T>());
2222
}
2323

2424
template <unsigned n>
25-
static void call(Attributable &, std::string const &name, Attribute)
25+
static void
26+
call(Attributable &, std::string const &name, Attribute const &)
2627
{
2728
std::cerr << "Unknown datatype for template attribute '" << name
2829
<< "'. Will skip it." << std::endl;

0 commit comments

Comments
 (0)