use pass by reference

This commit is contained in:
Jacek Jendrzej
2020-01-21 15:20:56 +01:00
parent 483aeea387
commit 94be52cfea
3 changed files with 4 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ class CScreenShot
#endif // SCREENSHOT_INTERNAL
public:
CScreenShot(const std::string fname = "", screenshot_format_t fmt = CScreenShot::FORMAT_JPG);
CScreenShot(const std::string &fname = "", screenshot_format_t fmt = CScreenShot::FORMAT_JPG);
~CScreenShot();
void MakeFileName(const t_channel_id channel_id);