mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T294, name pair style
This commit is contained in:
@@ -48,7 +48,7 @@ namespace BlackMisc
|
||||
QString CNameVariantPairList::getValueAsString(const QString &name) const
|
||||
{
|
||||
if (name.isEmpty()) { return QString(); }
|
||||
CVariant cs(getValue(name).getVariant());
|
||||
const CVariant cs(getValue(name).getVariant());
|
||||
if (cs.isNull() || !cs.canConvert<QString>()) { return QString(); }
|
||||
return cs.value<QString>();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace BlackMisc
|
||||
//! \note Currently name must be unique
|
||||
class BLACKMISC_EXPORT CNameVariantPairList :
|
||||
public CSequence<CNameVariantPair>,
|
||||
public BlackMisc::Mixin::MetaType<CNameVariantPairList>
|
||||
public Mixin::MetaType<CNameVariantPairList>
|
||||
{
|
||||
public:
|
||||
BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CNameVariantPairList)
|
||||
|
||||
Reference in New Issue
Block a user