mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Fixed errors found while trying to compile with Clang on Windows.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user