fix(Core): remove useless includes

This commit is contained in:
Ronan Abhamon 2017-11-10 11:25:29 +01:00
parent e536ded32d
commit 33edd95a15
6 changed files with 9 additions and 11 deletions

View file

@ -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"
// =============================================================================

View file

@ -20,8 +20,6 @@
#include "logger/logger.h"
#include "object-p.h"
#include "object.h"
// =============================================================================
using namespace std;

View file

@ -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;

View file

@ -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 () {

View file

@ -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) \

View file

@ -77,6 +77,8 @@ private:
int type = Variant::Invalid;
};
// -----------------------------------------------------------------------------
Variant::Variant () {
// Private can exist. (placement new)
if (!mPrivate)