Skip to content

Commit

Permalink
Fix -Wtemplate-id-cdtor compiler warning
Browse files Browse the repository at this point in the history
Fixes:
```
objectmodelbase.h:47:36: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   47 |     explicit ObjectModelBase<Base>(QObject *parent)
      |                                    ^~~~~~~
```
  • Loading branch information
milianw committed Jul 22, 2024
1 parent 6c8b955 commit f73f4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/objectmodelbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ObjectModelBase : public Base
* Constructor.
* @param parent is the parent object for this instance.
*/
explicit ObjectModelBase<Base>(QObject *parent)
explicit ObjectModelBase(QObject *parent)
: Base(parent)
{
}
Expand Down

0 comments on commit f73f4ba

Please sign in to comment.