Skip to content
Snippets Groups Projects
Commit 826607a1 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Abi: Add isNull() method

Change-Id: If8d6e5ace13857e4435b09e47d5d40dd2befdacf
Reviewed-on: http://codereview.qt.nokia.com/4279


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent b53570d4
No related branches found
No related tags found
No related merge requests found
...@@ -485,6 +485,15 @@ bool Abi::isValid() const ...@@ -485,6 +485,15 @@ bool Abi::isValid() const
&& m_wordWidth != 0; && 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) QString Abi::toString(const Architecture &a)
{ {
switch (a) { switch (a) {
......
...@@ -120,6 +120,7 @@ public: ...@@ -120,6 +120,7 @@ public:
bool isCompatibleWith(const Abi &other) const; bool isCompatibleWith(const Abi &other) const;
bool isValid() const; bool isValid() const;
bool isNull() const;
Architecture architecture() const { return m_architecture; } Architecture architecture() const { return m_architecture; }
OS os() const { return m_os; } OS os() const { return m_os; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment