aboutsummaryrefslogtreecommitdiff
path: root/libxsd-frontend/xml.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-09-28 07:42:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-09-28 07:42:39 +0200
commitbd94fae273b33cc58333c32d21ae5e425372527e (patch)
tree91424087bc86438e981119da26106fd65aa006c9 /libxsd-frontend/xml.hxx
parentb15b51bc57fca8324e20df87c2b68b93bd2ac731 (diff)
Avoid unnecessary copies
Hopefully this will also get rid of bigus -Wfree-nonheap-object on MinGW GCC 12.
Diffstat (limited to 'libxsd-frontend/xml.hxx')
-rw-r--r--libxsd-frontend/xml.hxx4
1 files changed, 2 insertions, 2 deletions
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__;