[vala/staging] vala: Make source_reference optional for ObjectCreationExpression
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Make source_reference optional for ObjectCreationExpression
- Date: Wed, 24 Oct 2018 12:54:06 +0000 (UTC)
commit 2677aa9dacee72f7b1b799c8034fb4e45ba0ddfe
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 24 14:06:49 2018 +0200
vala: Make source_reference optional for ObjectCreationExpression
vala/valaobjectcreationexpression.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala
index ff0e818e3..0b6a29391 100644
--- a/vala/valaobjectcreationexpression.vala
+++ b/vala/valaobjectcreationexpression.vala
@@ -69,7 +69,7 @@ public class Vala.ObjectCreationExpression : Expression {
* @param source_reference reference to source code
* @return newly created object creation expression
*/
- public ObjectCreationExpression (MemberAccess? member_name, SourceReference source_reference) {
+ public ObjectCreationExpression (MemberAccess? member_name, SourceReference? source_reference = null)
{
this.source_reference = source_reference;
this.member_name = member_name;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]