Skip to content

Commit 62d9c46

Browse files
[Satel Integra] fix compilation
1 parent d82a23e commit 62d9c46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hardware/SatelIntegra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ bool SatelIntegra::WriteToHardware(const char *pdata, const unsigned char length
917917
return false;
918918
}
919919

920-
std::string SatelIntegra::ISO2UTF8(const std::string name)
920+
std::string SatelIntegra::ISO2UTF8(const std::string &name)
921921
{
922922
char cp1250[] = "\xB9\xE6\xEA\xB3\xF1\xF3\x9C\x9F\xBF\xA5\xC6\xCA\xA3\xD1\xD3\x8C\x8F\xAF";
923923
char utf8[] = "\xC4\x85\xC4\x87\xC4\x99\xC5\x82\xC5\x84\xC3\xB3\xC5\x9B\xC5\xBA\xC5\xBC\xC4\x84\xC4\x86\xC4\x98\xC5\x81\xC5\x83\xC3\x93\xC5\x9A\xC5\xB9\xC5\xBB";

hardware/SatelIntegra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class SatelIntegra : public CDomoticzHardwareBase
9191
bool DisarmPartitions(const unsigned int partition);
9292

9393
// convert string from iso to utf8
94-
std::string SatelIntegra::ISO2UTF8(const std::string name);
94+
std::string ISO2UTF8(const std::string &name);
9595

9696
std::pair<unsigned char*, unsigned int> getFullFrame(const unsigned char* pCmd, const unsigned int cmdLength);
9797
int SendCommand(const unsigned char* cmd, const unsigned int cmdLength, unsigned char *answer);

0 commit comments

Comments
 (0)