[561693] Unnecessary const_cast in CCommFB::createInterfaceSpec
Remove Unnecessary const_cast
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=561693
Change-Id: Ic65371869ecb58a2b03c8389bd215b9109e20ad2
Signed-off-by: Jose Cabral <cabral@fortiss.org>
diff --git a/src/core/cominfra/commfb.cpp b/src/core/cominfra/commfb.cpp
index 0f61ad7..76c8090 100644
--- a/src/core/cominfra/commfb.cpp
+++ b/src/core/cominfra/commfb.cpp
@@ -123,8 +123,8 @@
bool CCommFB::createInterfaceSpec(const char *paConfigString, SFBInterfaceSpec &paInterfaceSpec){
TIdentifier tempstring;
- char *sParamA = 0;
- char *sParamB = 0;
+ const char *sParamA = 0;
+ const char *sParamB = 0;
paInterfaceSpec.m_nNumEIs = 2;
paInterfaceSpec.m_nNumEOs = 2;
@@ -156,13 +156,13 @@
configureDOs(sParamB, paInterfaceSpec);
if (forte::com_infra::e_Requester == (forte::com_infra::e_Requester & m_eCommServiceType)) {
- paInterfaceSpec.m_aunEINames = const_cast<CStringDictionary::TStringId*>(scm_aunRequesterEventInputNameIds);
- paInterfaceSpec.m_aunEONames = const_cast<CStringDictionary::TStringId*>(scm_aunRequesterEventOutputNameIds);
+ paInterfaceSpec.m_aunEINames = scm_aunRequesterEventInputNameIds;
+ paInterfaceSpec.m_aunEONames = scm_aunRequesterEventOutputNameIds;
}
else {
if (forte::com_infra::e_Responder == (forte::com_infra::e_Responder & m_eCommServiceType)) {
- paInterfaceSpec.m_aunEINames = const_cast<CStringDictionary::TStringId*>(scm_aunResponderEventInputNameIds);
- paInterfaceSpec.m_aunEONames = const_cast<CStringDictionary::TStringId*>(scm_aunResponderEventOutputNameIds);
+ paInterfaceSpec.m_aunEINames = scm_aunResponderEventInputNameIds;
+ paInterfaceSpec.m_aunEONames = scm_aunResponderEventOutputNameIds;
}
}
paInterfaceSpec.m_anEIWithIndexes = scm_anEIWithIndexes;