mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
return initialized empty const ref to avoid weird behavior
This commit is contained in:
parent
7698dae2d9
commit
1748db5ca5
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ namespace Utils {
|
|||
|
||||
template<typename T>
|
||||
LINPHONE_PUBLIC const T &getEmptyConstRefObject () {
|
||||
static const T object;
|
||||
static const T object{};
|
||||
return object;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue