mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(Core): remove useless includes
This commit is contained in:
parent
e536ded32d
commit
33edd95a15
6 changed files with 9 additions and 11 deletions
|
|
@ -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"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@
|
|||
#include "logger/logger.h"
|
||||
#include "object-p.h"
|
||||
|
||||
#include "object.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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) \
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ private:
|
|||
int type = Variant::Invalid;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Variant::Variant () {
|
||||
// Private can exist. (placement new)
|
||||
if (!mPrivate)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue