aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libxsd-frontend/semantic-graph/elements.hxx4
-rw-r--r--libxsd-frontend/xml.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/libxsd-frontend/semantic-graph/elements.hxx b/libxsd-frontend/semantic-graph/elements.hxx
index 5a0d64b..f025603 100644
--- a/libxsd-frontend/semantic-graph/elements.hxx
+++ b/libxsd-frontend/semantic-graph/elements.hxx
@@ -193,7 +193,7 @@ namespace XSDFrontend
class Names: public virtual Edge
{
public:
- Name
+ const Name&
name () const
{
return name_;
@@ -256,7 +256,7 @@ namespace XSDFrontend
return named_ != 0;
}
- Name
+ const Name&
name () const
{
assert (named_p ());
diff --git a/libxsd-frontend/xml.hxx b/libxsd-frontend/xml.hxx
index df9576a..c608cfa 100644
--- a/libxsd-frontend/xml.hxx
+++ b/libxsd-frontend/xml.hxx
@@ -203,13 +203,13 @@ namespace XSDFrontend
{
}
- String
+ const String&
name () const
{
return name_;
}
- String
+ const String&
namespace_ () const
{
return namespace__;