Skip to content

Commit e5577e8

Browse files
committed
Fix std::map reference argument :-(
1 parent 7bdb008 commit e5577e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hardware/RFXComSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ std::string RFXComSerial::GetUploadMessage()
433433
return m_szUploadMessage;
434434
}
435435

436-
bool RFXComSerial::Read_Firmware_File(const char *szFilename, std::map<unsigned long, std::string> fileBuffer)
436+
bool RFXComSerial::Read_Firmware_File(const char *szFilename, std::map<unsigned long, std::string>& fileBuffer)
437437
{
438438
#ifndef WIN32
439439
struct stat info;

hardware/RFXComSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RFXComSerial: public AsyncSerial, public CDomoticzHardwareBase
3131
bool UpgradeFirmware();
3232
bool Write_TX_PKT(const unsigned char *pdata, size_t length, const int max_retry = 3);
3333
bool Handle_RX_PKT(const unsigned char *pdata, size_t length);
34-
bool Read_Firmware_File(const char *szFilename, std::map<unsigned long, std::string> fileBuffer);
34+
bool Read_Firmware_File(const char *szFilename, std::map<unsigned long, std::string>& fileBuffer);
3535
bool EraseMemory(const int StartAddress, const int StopAddress);
3636

3737
serial::Serial m_serial;

0 commit comments

Comments
 (0)