Commit 9b16be09 authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref

parent 596fc5e5
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
//TODO: remove this class when Grantlee support it //TODO: remove this class when Grantlee support it
using namespace KCalUtils; using namespace KCalUtils;
QtResourceTemplateLoader::QtResourceTemplateLoader(const QSharedPointer<Grantlee::AbstractLocalizer> localizer) QtResourceTemplateLoader::QtResourceTemplateLoader(const QSharedPointer<Grantlee::AbstractLocalizer> &localizer)
: Grantlee::FileSystemTemplateLoader(localizer) : Grantlee::FileSystemTemplateLoader(localizer)
{ {
} }
......
...@@ -25,7 +25,7 @@ namespace KCalUtils { ...@@ -25,7 +25,7 @@ namespace KCalUtils {
class QtResourceTemplateLoader : public Grantlee::FileSystemTemplateLoader class QtResourceTemplateLoader : public Grantlee::FileSystemTemplateLoader
{ {
public: public:
QtResourceTemplateLoader(const QSharedPointer<Grantlee::AbstractLocalizer> localizer = QSharedPointer<Grantlee::AbstractLocalizer>()); QtResourceTemplateLoader(const QSharedPointer<Grantlee::AbstractLocalizer> &localizer = QSharedPointer<Grantlee::AbstractLocalizer>());
Grantlee::Template loadByName(const QString &fileName, const Grantlee::Engine *engine) const override; Grantlee::Template loadByName(const QString &fileName, const Grantlee::Engine *engine) const override;
bool canLoadTemplate(const QString &name) const override; bool canLoadTemplate(const QString &name) const override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment