summary refs log tree commit diff stats
path: root/examples/cross_todo
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-11-15 20:56:26 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-11-15 20:56:59 +0100
commit3c817cc85d2636c70e5636169faa4e320f3c09c1 (patch)
treecab5cda233452063e7653ca08e154181b7d4edc9 /examples/cross_todo
parente4211230e8424d0522b3a827b8d1981ed22a22ed (diff)
downloadNim-3c817cc85d2636c70e5636169faa4e320f3c09c1.tar.gz
Removes 'of TObject' to finalize objects not meant for inheritance.
Diffstat (limited to 'examples/cross_todo')
-rw-r--r--examples/cross_todo/nimrod_backend/backend.nim4
-rw-r--r--examples/cross_todo/nimrod_commandline/nimtodo.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/cross_todo/nimrod_backend/backend.nim b/examples/cross_todo/nimrod_backend/backend.nim
index d44cbb38a..89e7d0b7e 100644
--- a/examples/cross_todo/nimrod_backend/backend.nim
+++ b/examples/cross_todo/nimrod_backend/backend.nim
@@ -6,7 +6,7 @@ import db_sqlite, parseutils, strutils, times
 
 
 type
-  TTodo* = object of TObject
+  TTodo* = object
     ## A todo object holding the information serialized to the database.
     id: int64                 ## Unique identifier of the object in the
                               ## database, use the getId() accessor to read it.
@@ -17,7 +17,7 @@ type
                               ## outside of this module, use the
                               ## getModificationDate accessor.
 
-  TPagedParams* = object of TObject
+  TPagedParams* = object
     ## Contains parameters for a query, initialize default values with
     ## initDefaults().
     pageSize*: int64          ## Lines per returned query page, -1 for
diff --git a/examples/cross_todo/nimrod_commandline/nimtodo.nim b/examples/cross_todo/nimrod_commandline/nimtodo.nim
index b4dac0601..0579027c5 100644
--- a/examples/cross_todo/nimrod_commandline/nimtodo.nim
+++ b/examples/cross_todo/nimrod_commandline/nimtodo.nim
@@ -42,7 +42,7 @@ type
     cmdGenerate       # Add random rows to the database, for testing.
     cmdList           # User wants to list contents.
 
-  TParamConfig = object of TObject
+  TParamConfig = object
     # Structure containing the parsed options from the commandline.
     command: TCommand         # Store the type of operation
     addPriority: int          # Only valid with cmdAdd, stores priority.