Skip to content

Commit

Permalink
Merge pull request eclipse-4diac#194 from ernstblechaPT/fix_writeValue
Browse files Browse the repository at this point in the history
update writeValue in FakeTimeDev to use std::string...
  • Loading branch information
azoitl authored Jul 22, 2024
2 parents 6bb5ff5 + c0d29fb commit 23d49a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stdfblib/ita/FakeTimeDev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ CDataConnection **FakeTimeDev::getDIConUnchecked(const TPortId paIndex) {
return nullptr;
}

EMGMResponse FakeTimeDev::writeValue(forte::core::TNameIdentifier &paNameList, const CIEC_STRING & paValue, bool paForce) {
EMGMResponse FakeTimeDev::writeValue(forte::core::TNameIdentifier &paNameList, const std::string & paValue, bool paForce) {
// parent writeValue is modifying the name list so we need to get the name as backup here
CStringDictionary::TStringId portName = paNameList.back();
EMGMResponse eRetVal = CDevice::writeValue(paNameList, paValue, paForce);
Expand Down
2 changes: 1 addition & 1 deletion src/stdfblib/ita/FakeTimeDev.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FakeTimeDev : public CDevice{

EMGMResponse changeFBExecutionState(EMGMCommandType paCommand) override;

EMGMResponse writeValue(forte::core::TNameIdentifier &paNameList, const CIEC_STRING & paValue, bool paForce = false) override;
EMGMResponse writeValue(forte::core::TNameIdentifier &paNameList, const std::string & paValue, bool paForce = false) override;

private:
CInterface2InternalDataConnection mDConnMGR_ID;
Expand Down

0 comments on commit 23d49a0

Please sign in to comment.