diff --git a/coreapi/vcard.cc b/coreapi/vcard.cc index 92da60aac..0e3f9ade5 100644 --- a/coreapi/vcard.cc +++ b/coreapi/vcard.cc @@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define VCARD_MD5_HASH_SIZE 16 +using namespace std; struct _LinphoneVcardContext { shared_ptr parser; diff --git a/tools/software-desc.hh b/tools/software-desc.hh index 4063b8097..c20b22425 100644 --- a/tools/software-desc.hh +++ b/tools/software-desc.hh @@ -33,8 +33,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include -using namespace::std; - class Type{ public: @@ -50,7 +48,7 @@ public: Array }; static const char *sBasicTypeNames[]; - static Type* addType(BasicType bt, const string &name){ + static Type* addType(BasicType bt, const std::string &name){ Type* ret; if ((ret=mTypes[name])==0){ //cout<<"Adding new "< mTypes; + static std::map mTypes; }; class Argument{ public: - Argument(Type *type, const string &argname, bool isConst, bool isPointer) : mType(type), mName(argname), mConst(isConst), mPointer(isPointer){ + Argument(Type *type, const std::string &argname, bool isConst, bool isPointer) : mType(type), mName(argname), mConst(isConst), mPointer(isPointer){ if (!isPointer) mConst=false; } Type *getType()const{ @@ -134,23 +132,23 @@ public: bool isConst()const{ return mConst; } - const string &getName()const{ + const std::string &getName()const{ return mName; } bool isPointer()const{ return mPointer; } - const string &getHelp()const{ + const std::string &getHelp()const{ return mHelp; } - void setHelp(const string &help){ + void setHelp(const std::string &help){ mHelp=help; } private: Type *mType; - string mName; - string mHelp; + std::string mName; + std::string mHelp; bool mConst; bool mPointer; }; diff --git a/wrappers/cpp/class_impl.mustache b/wrappers/cpp/class_impl.mustache index 142413ff9..ec0c55c07 100644 --- a/wrappers/cpp/class_impl.mustache +++ b/wrappers/cpp/class_impl.mustache @@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "linphone++/linphone.hh" #include "tools.hh" +using namespace std; using namespace {{{namespace}}}; {{#classes}}