summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Volz <andreas@er00923n.fritz.box>2011-11-26 23:11:18 +0100
committerAndreas Volz <andreas@er00923n.fritz.box>2011-11-26 23:11:18 +0100
commitfcae4df4851779a451b8e90626537f1c37441034 (patch)
tree99cccd00ab8f33297b484874d36047c1b1135a72
parent59fc6e9e46ca9b9bb125ee8d14216c1c9aad3a34 (diff)
downloaddbus-c++-fcae4df4851779a451b8e90626537f1c37441034.tar.gz
[PATCH 02/15] Remove useless const qualifiers on return
From: qolyester@green-communications.fr
-rw-r--r--include/dbus-c++/interface.h2
-rw-r--r--include/dbus-c++/introspection.h2
-rw-r--r--include/dbus-c++/property.h2
-rw-r--r--src/introspection.cpp2
-rw-r--r--src/property.cpp2
-rw-r--r--tools/generate_adaptor.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/include/dbus-c++/interface.h b/include/dbus-c++/interface.h
index 86c8d18..58b8de0 100644
--- a/include/dbus-c++/interface.h
+++ b/include/dbus-c++/interface.h
@@ -143,7 +143,7 @@ public:
void set_property(const std::string &name, Variant &value);
- virtual IntrospectedInterface *const introspect() const
+ virtual IntrospectedInterface * introspect() const
{
return NULL;
}
diff --git a/include/dbus-c++/introspection.h b/include/dbus-c++/introspection.h
index 5f0d1e4..1dd06fa 100644
--- a/include/dbus-c++/introspection.h
+++ b/include/dbus-c++/introspection.h
@@ -69,7 +69,7 @@ public:
protected:
- IntrospectedInterface *const introspect() const;
+ IntrospectedInterface * introspect() const;
};
class DXXAPI IntrospectableProxy : public InterfaceProxy
diff --git a/include/dbus-c++/property.h b/include/dbus-c++/property.h
index 847ae89..2c4a80a 100644
--- a/include/dbus-c++/property.h
+++ b/include/dbus-c++/property.h
@@ -82,7 +82,7 @@ protected:
virtual void on_set_property(InterfaceAdaptor &/*interface*/, const std::string &/*property*/, const Variant &/*value*/)
{}
- IntrospectedInterface *const introspect() const;
+ IntrospectedInterface * introspect() const;
};
class DXXAPI PropertiesProxy : public InterfaceProxy
diff --git a/src/introspection.cpp b/src/introspection.cpp
index 11fa883..f27774a 100644
--- a/src/introspection.cpp
+++ b/src/introspection.cpp
@@ -144,7 +144,7 @@ Message IntrospectableAdaptor::Introspect(const CallMessage &call)
return reply;
}
-IntrospectedInterface *const IntrospectableAdaptor::introspect() const
+IntrospectedInterface * IntrospectableAdaptor::introspect() const
{
static IntrospectedArgument Introspect_args[] =
{
diff --git a/src/property.cpp b/src/property.cpp
index 15a2f5b..77fe7a2 100644
--- a/src/property.cpp
+++ b/src/property.cpp
@@ -96,7 +96,7 @@ Message PropertiesAdaptor::Set(const CallMessage &call)
return reply;
}
-IntrospectedInterface *const PropertiesAdaptor::introspect() const
+IntrospectedInterface * PropertiesAdaptor::introspect() const
{
static IntrospectedArgument Get_args[] =
{
diff --git a/tools/generate_adaptor.cpp b/tools/generate_adaptor.cpp
index c23ef38..21a4271 100644
--- a/tools/generate_adaptor.cpp
+++ b/tools/generate_adaptor.cpp
@@ -145,7 +145,7 @@ void generate_adaptor(Xml::Document &doc, const char *filename)
body << tab << "}" << endl
<< endl;
- body << tab << "::DBus::IntrospectedInterface *const introspect() const " << endl
+ body << tab << "::DBus::IntrospectedInterface *introspect() const " << endl
<< tab << "{" << endl;
// generate the introspect arguments