mirror of https://github.com/KLayout/klayout.git
Fixed Qt-less builds.
This commit is contained in:
parent
bd9afaf865
commit
dce371caaa
|
|
@ -1603,9 +1603,11 @@ Variant::to_bytearray () const
|
|||
return std::vector<char> (m_var.m_qbytearray->constBegin (), m_var.m_qbytearray->constEnd ());
|
||||
} else if (m_type == t_bytearray) {
|
||||
return *m_var.m_bytearray;
|
||||
#if defined(HAVE_QT)
|
||||
} else if (m_type == t_qstring) {
|
||||
QByteArray ba = m_var.m_qstring->toUtf8 ();
|
||||
return std::vector<char> (ba.constBegin (), ba.constEnd ());
|
||||
#endif
|
||||
} else if (m_type == t_stdstring) {
|
||||
return std::vector<char> (m_var.m_stdstring->begin (), m_var.m_stdstring->end ());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue