support for multi ctor CONNECTL
This commit is contained in:
@@ -3,7 +3,7 @@ cmake_policy(SET CMP0017 NEW) # need include() with .cmake
|
||||
project(PIP)
|
||||
set(PIP_MAJOR 3)
|
||||
set(PIP_MINOR 15)
|
||||
set(PIP_REVISION 0)
|
||||
set(PIP_REVISION 1)
|
||||
set(PIP_SUFFIX )
|
||||
set(PIP_COMPANY SHS)
|
||||
set(PIP_DOMAIN org.SHS)
|
||||
|
||||
@@ -404,11 +404,16 @@ PIObject::Connection PIObject::piConnectLS(PIObject * src, const PIString & sig,
|
||||
return Connection();
|
||||
}
|
||||
if (m_src.size() != 1) {
|
||||
piCout << "[piConnectLS] Error: can`t connect overloaded event \"" << sig << "\" in class \"" << src->className() << "\"! (" << loc
|
||||
<< ")";
|
||||
PIString ffm = m_src[0].fullFormat();
|
||||
for (int i = 1; i < m_src.size_s(); ++i) {
|
||||
if (ffm != m_src[i].fullFormat()) {
|
||||
piCout << "[piConnectLS] Error: can`t connect overloaded event \"" << sig << "\" in class \"" << src->className()
|
||||
<< "\", found " << m_src.size() << " events! (" << loc << ")";
|
||||
delete f;
|
||||
return Connection();
|
||||
}
|
||||
}
|
||||
}
|
||||
PIObject::Connection conn(0, m_src[0].addr, sig, src);
|
||||
// piCout << "found";
|
||||
conn.functor = f;
|
||||
|
||||
Reference in New Issue
Block a user