Pass value by reference.

This commit is contained in:
XhmikosR 2015-04-09 19:40:32 +03:00
parent 4865e7696a
commit 11d3ff0cc9
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ while(0)
} \ } \
while(0) while(0)
void EncoderRegistry::saveEncoderCustomParams(SettingsModel *settings, const int encoderId, const QString params) void EncoderRegistry::saveEncoderCustomParams(SettingsModel *settings, const int encoderId, const QString &params)
{ {
//Store the encoder bitrate/quality value //Store the encoder bitrate/quality value
switch(encoderId) switch(encoderId)

View File

@ -42,7 +42,7 @@ public:
static void saveEncoderValue(SettingsModel *settings, const int encoderId, const int rcMode, const int value); static void saveEncoderValue(SettingsModel *settings, const int encoderId, const int rcMode, const int value);
static int loadEncoderValue(const SettingsModel *settings, const int encoderId, const int rcMode); static int loadEncoderValue(const SettingsModel *settings, const int encoderId, const int rcMode);
static void saveEncoderCustomParams(SettingsModel *settings, const int encoderId, const QString params); static void saveEncoderCustomParams(SettingsModel *settings, const int encoderId, const QString &params);
static QString loadEncoderCustomParams(const SettingsModel *settings, const int encoderId); static QString loadEncoderCustomParams(const SettingsModel *settings, const int encoderId);
static void resetAllEncoders(SettingsModel *settings); static void resetAllEncoders(SettingsModel *settings);