Warnings fixes for VS.

This commit is contained in:
Robert Osfield
2009-02-02 20:35:19 +00:00
parent 965b7ddc72
commit 1153ea5feb
20 changed files with 155 additions and 11 deletions

View File

@@ -288,6 +288,8 @@ namespace osgIntrospection
private:
const Type& _type;
PropertyTypeAttribute& operator = (const PropertyTypeAttribute&) { return *this; }
};
/// Attribute for overriding the type of an index (of an indexed
@@ -313,6 +315,9 @@ namespace osgIntrospection
}
private:
IndexTypeAttribute& operator = (const IndexTypeAttribute&) { return *this; }
int _wi;
const Type& _type;
};

View File

@@ -92,6 +92,9 @@ namespace osgIntrospection
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;
private:
ConstructorInfo& operator = (const ConstructorInfo&) { return *this; }
const Type& _declarationType;
ParameterInfoList _params;
bool _explicit;

View File

@@ -114,6 +114,9 @@ namespace osgIntrospection
inline Value invoke() const;
private:
MethodInfo& operator = (const MethodInfo&) { return *this; }
inline std::string strip_namespace(const std::string& s) const;
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;

View File

@@ -68,6 +68,9 @@ namespace osgIntrospection
inline bool isInOut() const { return isIn() && isOut(); }
private:
ParameterInfo& operator = (const ParameterInfo&) { return *this; }
std::string _name;
const Type& _type;
int attribs_;

View File

@@ -360,6 +360,9 @@ namespace osgIntrospection
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;
private:
PropertyInfo& operator = (const PropertyInfo&) { return *this; }
const Type& _declarationType;
const Type& _ptype;
std::string _name;

View File

@@ -177,9 +177,22 @@ namespace osgIntrospection
struct Instance: Instance_base
{
Instance(T data): _data(data) {}
virtual Instance_base *clone() const { return new Instance<T>(*this); }
virtual ~Instance() {}
T _data;
protected:
Instance& operator = (const Instance& rhs)
{
if (&rhs!=this)
{
_data = rhs._data;
}
return *this;
}
};
// Base class for storage of Instance objects. Actually three
@@ -233,7 +246,7 @@ namespace osgIntrospection
_ref_inst = new Instance<T &>(vl->_data);
_const_ref_inst = new Instance<const T &>(vl->_data);
}
virtual Instance_box_base *clone() const
{
Instance_box<T> *new_inbox = new Instance_box<T>();
@@ -261,6 +274,9 @@ namespace osgIntrospection
private:
bool nullptr_;
Instance_box& operator = (const Instance_box&) { return *this; }
};
// Generic instance box for pointer values. Unlike Instance_box<>,