aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_showfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_showfile.cpp')
-rw-r--r--src/modules/m_showfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index 91463607e..c758a659f 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -79,7 +79,7 @@ public:
return CmdResult::SUCCESS;
}
- void UpdateSettings(std::shared_ptr<ConfigTag> tag, const std::vector<std::string>& filecontents)
+ void UpdateSettings(const std::shared_ptr<ConfigTag>& tag, const std::vector<std::string>& filecontents)
{
introtext = tag->getString("introtext", "Showing " + name);
endtext = tag->getString("endtext", "End of " + name);
@@ -114,7 +114,7 @@ class ModuleShowFile final
private:
std::vector<CommandShowFile*> cmds;
- void ReadTag(std::shared_ptr<ConfigTag> tag, std::vector<CommandShowFile*>& newcmds)
+ void ReadTag(const std::shared_ptr<ConfigTag>& tag, std::vector<CommandShowFile*>& newcmds)
{
std::string cmdname = tag->getString("name");
if (cmdname.empty())