Fixed errors found while trying to compile with Clang on Windows.

This commit is contained in:
Mathew Sutcliffe
2015-12-03 00:31:48 +00:00
parent 366030f2a9
commit 886f9937ce
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ namespace BlackMisc
//! Assign from JSON object string
void convertFromJson(const QString &jsonString)
{
convertFromJson(BlackMisc::Json::jsonObjectFromString(jsonString));
this->convertFromJson(BlackMisc::Json::jsonObjectFromString(jsonString));
}
//! \copydoc BlackMisc::CValueObject::convertToQString

View File

@@ -186,7 +186,7 @@ namespace BlackMisc
/*!
* \brief Access the last element, or a default value if the sequence is empty.
*/
const_reference backOrDefault() const { static const value_type def; return empty() ? def : back(); }
const_reference backOrDefault() const { static const value_type def {}; return empty() ? def : back(); }
/*!
* \brief Access the last element, or a default value if the sequence is empty.