[glibmm/gmmproc-refactor] Fix string concatenation in taghandlerwriter.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor] Fix string concatenation in taghandlerwriter.
- Date: Wed, 6 Jun 2012 07:11:27 +0000 (UTC)
commit 0dd8dcb68b76d8013f604b7ba4496cbf83fa43e5
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Tue Apr 17 01:54:23 2012 +0200
Fix string concatenation in taghandlerwriter.
This part of code is rarely run, so I have not noticed before that
I was using `+=' for concatenating strings, instead of `.='.
tools/pm/taghandlerwriter.pl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tools/pm/taghandlerwriter.pl b/tools/pm/taghandlerwriter.pl
index 879213f..162c610 100755
--- a/tools/pm/taghandlerwriter.pl
+++ b/tools/pm/taghandlerwriter.pl
@@ -868,7 +868,7 @@ sub write_docs ($)
if (defined $parent_string)
{
- $refsect += nl ($parent_string) .
+ $refsect .= nl ($parent_string) .
nl (join ((nl ','), @parent_links) . '.');
}
@@ -884,7 +884,7 @@ sub write_docs ($)
if (@{$kids})
{
- $refsect += nl (' Possible children:') .
+ $refsect .= nl (' Possible children:') .
nl (join ((nl ','), @kid_links) . '.');
}
@@ -915,16 +915,16 @@ sub write_docs ($)
if (@mandatory_atts)
{
- $refsect += nl (' Mandatory attributes (mandatory value when such exists):') .
+ $refsect .= nl (' Mandatory attributes (mandatory value when such exists):') .
nl (join ((nl ','), @mandatory_atts) . '.');
}
if (@optional_atts)
{
- $refsect += nl (' Optional attributes (default value when attribute is not specified):') .
+ $refsect .= nl (' Optional attributes (default value when attribute is not specified):') .
nl (join ((nl ','), @optional_atts) . '.');
}
- $refsect += nl (' <example>') .
+ $refsect .= nl (' <example>') .
nl (' <title>A GIR fragment showing an namespace node</title>') .
nl (' <programlisting><![CDATA[') .
nl (' TODO]]></programlisting>') .
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]