Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
d70c38f9
Commit
d70c38f9
authored
Nov 15, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Object): little fixes, remove useless friend and add assert and getSharedFromThis
parent
105e63f2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
3 deletions
+14
-3
src/object/app-data-container.cpp
src/object/app-data-container.cpp
+2
-0
src/object/base-object-p.h
src/object/base-object-p.h
+2
-2
src/object/object.cpp
src/object/object.cpp
+4
-0
src/object/object.h
src/object/object.h
+0
-1
src/object/property-container.cpp
src/object/property-container.cpp
+2
-0
src/utils/utils.cpp
src/utils/utils.cpp
+2
-0
src/variant/variant.cpp
src/variant/variant.cpp
+2
-0
No files found.
src/object/app-data-container.cpp
View file @
d70c38f9
...
...
@@ -27,6 +27,8 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
class
AppDataContainerPrivate
{
public:
shared_ptr
<
unordered_map
<
string
,
string
>>
appData
;
...
...
src/object/base-object-p.h
View file @
d70c38f9
...
...
@@ -17,8 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef _BASE_OBJECT_P_H_
#define _BASE_OBJECT_P_H_
#ifndef _BASE_OBJECT_P_H_
#define _BASE_OBJECT_P_H_
#include "linphone/utils/general.h"
...
...
src/object/object.cpp
View file @
d70c38f9
...
...
@@ -26,6 +26,8 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
Object
::
Object
(
ObjectPrivate
&
p
)
:
BaseObject
(
p
)
{}
shared_ptr
<
Object
>
Object
::
getSharedFromThis
()
{
...
...
@@ -39,6 +41,8 @@ shared_ptr<const Object> Object::getSharedFromThis () const {
lFatal
()
<<
"Object "
<<
this
<<
" was not created with make_shared."
;
}
// Unable to reach this point.
L_ASSERT
(
false
);
return
nullptr
;
}
...
...
src/object/object.h
View file @
d70c38f9
...
...
@@ -38,7 +38,6 @@ class LINPHONE_PUBLIC Object :
public
std
::
enable_shared_from_this
<
Object
>
,
public
BaseObject
,
public
PropertyContainer
{
friend
class
ObjectFactory
;
public:
std
::
shared_ptr
<
Object
>
getSharedFromThis
();
...
...
src/object/property-container.cpp
View file @
d70c38f9
...
...
@@ -27,6 +27,8 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
class
PropertyContainerPrivate
{
public:
unordered_map
<
string
,
Variant
>
properties
;
...
...
src/utils/utils.cpp
View file @
d70c38f9
...
...
@@ -31,6 +31,8 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
bool
Utils
::
iequals
(
const
string
&
a
,
const
string
&
b
)
{
size_t
size
=
a
.
size
();
if
(
b
.
size
()
!=
size
)
...
...
src/variant/variant.cpp
View file @
d70c38f9
...
...
@@ -27,6 +27,8 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
class
VariantPrivate
{
public:
union
Value
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment