Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
24
Merge Requests
24
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
113dee4b
Commit
113dee4b
authored
Sep 25, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(core): clean code, remove useless includes
parent
0d025669
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
21 deletions
+10
-21
clonable-object.h
src/object/clonable-object.h
+0
-4
object-p.h
src/object/object-p.h
+0
-2
object.h
src/object/object.h
+3
-4
property-container.h
src/object/property-container.h
+0
-4
singleton.h
src/object/singleton.h
+1
-1
utils.cpp
src/utils/utils.cpp
+4
-4
variant.h
src/variant/variant.h
+2
-2
No files found.
src/object/clonable-object.h
View file @
113dee4b
...
...
@@ -19,10 +19,6 @@
#ifndef _CLONABLE_OBJECT_H_
#define _CLONABLE_OBJECT_H_
#include <string>
#include "linphone/utils/general.h"
#include "property-container.h"
// =============================================================================
...
...
src/object/object-p.h
View file @
113dee4b
...
...
@@ -21,8 +21,6 @@
#include <unordered_map>
#include "linphone/utils/general.h"
#include "variant/variant.h"
// =============================================================================
...
...
src/object/object.h
View file @
113dee4b
...
...
@@ -21,16 +21,15 @@
#include <memory>
#include "linphone/utils/general.h"
#include "property-container.h"
// =============================================================================
LINPHONE_BEGIN_NAMESPACE
class
LINPHONE_PUBLIC
Object
:
public
std
::
enable_shared_from_this
<
Object
>
,
public
PropertyContainer
{
class
LINPHONE_PUBLIC
Object
:
public
std
::
enable_shared_from_this
<
Object
>
,
public
PropertyContainer
{
public
:
virtual
~
Object
();
...
...
src/object/property-container.h
View file @
113dee4b
...
...
@@ -19,10 +19,6 @@
#ifndef _PROPERTY_CONTAINER_H_
#define _PROPERTY_CONTAINER_H_
#include <string>
#include "linphone/utils/general.h"
#include "variant/variant.h"
// =============================================================================
...
...
src/object/singleton.h
View file @
113dee4b
...
...
@@ -26,7 +26,7 @@
LINPHONE_BEGIN_NAMESPACE
template
<
class
T
>
class
Singleton
:
public
Object
{
class
LINPHONE_PUBLIC
Singleton
:
public
Object
{
public
:
virtual
~
Singleton
()
=
default
;
...
...
src/utils/utils.cpp
View file @
113dee4b
...
...
@@ -93,10 +93,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) \
...
...
@@ -105,10 +105,10 @@ string Utils::toString (const void *val) {
} \
#define STRING_TO_NUMBER_IMPL_BASE_LESS(TYPE, SUFFIX) \
TYPE Utils::sto ## SUFFIX
(const string &str, size_t *
idx) { \
TYPE Utils::sto ## SUFFIX
(const string &str, size_t *
idx) { \
return sto ## SUFFIX(str.c_str(), idx); \
} \
TYPE Utils::sto ## SUFFIX
(const char *str, size_t *
idx) { \
TYPE Utils::sto ## SUFFIX
(const char *str, size_t *
idx) { \
char *p; \
TYPE v = strto ## SUFFIX(str, &p); \
if (idx) \
...
...
src/variant/variant.h
View file @
113dee4b
...
...
@@ -81,7 +81,7 @@ public:
Variant
(
const
std
::
string
&
value
);
// void* constructor. Must be explicitly called.
template
<
typename
T
,
typename
=
typename
std
::
enable_if
<
std
::
is_same
<
T
,
void
*>::
value
>
>
template
<
typename
T
,
typename
=
typename
std
::
enable_if
<
std
::
is_same
<
T
,
void
*>::
value
>>
Variant
(
T
value
)
:
Variant
(
Variant
::
createGeneric
(
value
))
{}
~
Variant
();
...
...
@@ -98,7 +98,7 @@ public:
template
<
typename
T
>
void
setValue
(
const
T
&
value
)
{
// Yeah, I'm crazy but it's useful to avoid code duplication.
new
(
this
)
Variant
(
value
);
new
(
this
)
Variant
(
value
);
}
template
<
typename
T
>
...
...
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