fix(Address): return correctly boolean in isValid

This commit is contained in:
Ronan Abhamon 2017-09-28 16:10:21 +02:00
parent b9f9dc1c5b
commit 77dbc1b9ba
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ LINPHONE_BEGIN_NAMESPACE
#if defined(_MSC_VER)
#define LINPHONE_DEPRECATED __declspec(deprecated)
#else
#define LINPHONE_DEPRECATED __attribute__ ((deprecated))
#define LINPHONE_DEPRECATED __attribute__((deprecated))
#endif
#endif

View file

@ -73,7 +73,7 @@ bool Address::operator< (const Address &address) const {
bool Address::isValid () const {
L_D();
d->internalAddress;
return !!d->internalAddress;
}
const string &Address::getScheme () const {