mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
use pass by reference
This commit is contained in:
@@ -56,7 +56,7 @@ extern "C" {
|
||||
extern cVideo *videoDecoder;
|
||||
|
||||
/* constructor, defaults is empty fname and CScreenShot::FORMAT_JPG format */
|
||||
CScreenShot::CScreenShot(const std::string fname, screenshot_format_t fmt)
|
||||
CScreenShot::CScreenShot(const std::string &fname, screenshot_format_t fmt)
|
||||
{
|
||||
format = fmt;
|
||||
filename = fname;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user