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
33edd95a
Commit
33edd95a
authored
Nov 10, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Core): remove useless includes
parent
e536ded3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
11 deletions
+9
-11
src/object/object-p.h
src/object/object-p.h
+0
-2
src/object/object.cpp
src/object/object.cpp
+0
-2
src/object/object.h
src/object/object.h
+0
-2
src/object/property-container.cpp
src/object/property-container.cpp
+5
-3
src/utils/utils.cpp
src/utils/utils.cpp
+2
-2
src/variant/variant.cpp
src/variant/variant.cpp
+2
-0
No files found.
src/object/object-p.h
View file @
33edd95a
...
...
@@ -20,12 +20,10 @@
#ifndef _OBJECT_P_H_
#define _OBJECT_P_H_
#include <memory>
#include <unordered_map>
#include "base-object-p.h"
#include "object.h"
#include "variant/variant.h"
// =============================================================================
...
...
src/object/object.cpp
View file @
33edd95a
...
...
@@ -20,8 +20,6 @@
#include "logger/logger.h"
#include "object-p.h"
#include "object.h"
// =============================================================================
using
namespace
std
;
...
...
src/object/object.h
View file @
33edd95a
...
...
@@ -41,8 +41,6 @@ class LINPHONE_PUBLIC Object :
friend
class
ObjectFactory
;
public:
virtual
~
Object
()
=
default
;
std
::
shared_ptr
<
Object
>
getSharedFromThis
();
std
::
shared_ptr
<
const
Object
>
getSharedFromThis
()
const
;
...
...
src/object/property-container.cpp
View file @
33edd95a
...
...
@@ -36,9 +36,11 @@ public:
PropertyContainer
::
PropertyContainer
()
:
mPrivate
(
new
PropertyContainerPrivate
)
{}
// Empty copy constructor. Don't change this pattern.
// PropertyContainer is an Entity component, not a simple structure.
// An Entity is UNIQUE.
/*
* Empty copy constructor. Don't change this pattern.
* PropertyContainer is an Entity component, not a simple structure.
* An Entity is UNIQUE.
*/
PropertyContainer
::
PropertyContainer
(
const
PropertyContainer
&
)
:
mPrivate
(
new
PropertyContainerPrivate
)
{}
PropertyContainer
::~
PropertyContainer
()
{
...
...
src/utils/utils.cpp
View file @
33edd95a
...
...
@@ -94,10 +94,10 @@ string Utils::toString (const void *val) {
// -----------------------------------------------------------------------------
#define STRING_TO_NUMBER_IMPL(TYPE, SUFFIX) \
TYPE Utils::sto ## SUFFIX(const string &str, size_t *idx, int base) { \
TYPE Utils::sto ## SUFFIX
(const string &str, size_t *idx, int base) { \
return sto ## SUFFIX(str.c_str(), idx, base); \
} \
TYPE Utils::sto ## SUFFIX(const char *str, size_t *idx, int base) { \
TYPE Utils::sto ## SUFFIX
(const char *str, size_t *idx, int base) { \
char *p; \
TYPE v = strto ## SUFFIX(str, &p, base); \
if (idx) \
...
...
src/variant/variant.cpp
View file @
33edd95a
...
...
@@ -77,6 +77,8 @@ private:
int
type
=
Variant
::
Invalid
;
};
// -----------------------------------------------------------------------------
Variant
::
Variant
()
{
// Private can exist. (placement new)
if
(
!
mPrivate
)
...
...
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