[tasque/transition: 163/213] [SQLite] Task: Fix ctors.
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 163/213] [SQLite] Task: Fix ctors.
- Date: Wed, 29 Aug 2012 18:47:44 +0000 (UTC)
commit 11726bb079ca9280fccbe254b3711d4df7b31071
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 20:53:10 2012 +0200
[SQLite] Task: Fix ctors.
src/Addins/SqliteBackend/SqliteTask.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/SqliteTask.cs b/src/Addins/SqliteBackend/SqliteTask.cs
index 26804ad..2fc0053 100644
--- a/src/Addins/SqliteBackend/SqliteTask.cs
+++ b/src/Addins/SqliteBackend/SqliteTask.cs
@@ -12,8 +12,11 @@ namespace Tasque.Backends.Sqlite
public SqliteTask (SqliteBackend backend, string name)
: base (backend.SanitizeText (name), TaskNoteSupport.Multiple)
{
+ if (backend == null)
+ throw new ArgumentNullException ("backend");
+
name = backend.SanitizeText (name);
- this.backend = backend;
+ Backend = backend;
Debug.WriteLine ("Creating New Task Object : {0} (id={1})", name, id);
var dueDate = Database.FromDateTime (DueDate);
var completionDate = Database.FromDateTime (CompletionDate);
@@ -27,10 +30,10 @@ namespace Tasque.Backends.Sqlite
public SqliteTask (SqliteBackend backend, int id, int category, string name,
long dueDate, long completionDate, int priority, int state)
+ : base (backend, name)
{
- this.backend = backend;
+ Backend = backend;
this.id = id;
- Name = name;
DueDate = dueDate;
CompletionDate = completionDate;
Priority = priority;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]