summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-10-30 14:53:44 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2016-10-30 15:12:17 +0100
commit6fd1e861f6de40e51cb0a28f2f8119c49183c7f4 (patch)
treec5dc4e9317ebb8a792e3e5948d4b3d4fbb6bc758 /vala
parent1897979fb3d00ed61ffce0b5dfbf22d4c7f4ecff (diff)
downloadvala-6fd1e861f6de40e51cb0a28f2f8119c49183c7f4.tar.gz
vala: Avoid superfluous string copying
Diffstat (limited to 'vala')
-rw-r--r--vala/valabinaryexpression.vala2
-rw-r--r--vala/valaunaryexpression.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/vala/valabinaryexpression.vala b/vala/valabinaryexpression.vala
index b081090d0..82e605398 100644
--- a/vala/valabinaryexpression.vala
+++ b/vala/valabinaryexpression.vala
@@ -99,7 +99,7 @@ public class Vala.BinaryExpression : Expression {
}
}
- public string get_operator_string () {
+ private unowned string get_operator_string () {
switch (_operator) {
case BinaryOperator.PLUS: return "+";
case BinaryOperator.MINUS: return "-";
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala
index dfc795ceb..95b0d4fc4 100644
--- a/vala/valaunaryexpression.vala
+++ b/vala/valaunaryexpression.vala
@@ -77,7 +77,7 @@ public class Vala.UnaryExpression : Expression {
}
}
- private string get_operator_string () {
+ private unowned string get_operator_string () {
switch (_operator) {
case UnaryOperator.PLUS: return "+";
case UnaryOperator.MINUS: return "-";