Commit 826607a1 authored by Tobias Hunger's avatar Tobias Hunger

Abi: Add isNull() method

Change-Id: If8d6e5ace13857e4435b09e47d5d40dd2befdacf
Reviewed-on: http://codereview.qt.nokia.com/4279Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent b53570d4
......@@ -485,6 +485,15 @@ bool Abi::isValid() const
&& m_wordWidth != 0;
}
bool Abi::isNull() const
{
return m_architecture == UnknownArchitecture
&& m_os == UnknownOS
&& m_osFlavor == UnknownFlavor
&& m_binaryFormat == UnknownFormat
&& m_wordWidth == 0;
}
QString Abi::toString(const Architecture &a)
{
switch (a) {
......
......@@ -120,6 +120,7 @@ public:
bool isCompatibleWith(const Abi &other) const;
bool isValid() const;
bool isNull() const;
Architecture architecture() const { return m_architecture; }
OS os() const { return m_os; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment