Update sharedpointer.md (#77)
This commit is contained in:
parent
5eaadcd350
commit
d2c9deec1d
|
|
@ -1,6 +1,6 @@
|
|||
Nut can compile in *shared pointer* mode or *regular* mode
|
||||
|
||||
In *shared pointer* mode reqults of queries is QList<QSharedPointer<T>> and in *regular* mode results are QList<T*>
|
||||
In *shared pointer* mode results of queries is QList<QSharedPointer<T>> and in *regular* mode results are QList<T*>
|
||||
|
||||
Almost in every case shared pointer mode is better, But nut support regular mode for backward comptability.
|
||||
|
||||
|
|
@ -56,4 +56,4 @@ auto post = Nut::create<Post>();
|
|||
|
||||
In above example if *NUT_SHARED_POINTER* is defined *post* is *QSharedPointer<Post>* else is *Post\**
|
||||
|
||||
I recommand use *NUT_SHARED_POINTER* always!
|
||||
I recommand use *NUT_SHARED_POINTER* always!
|
||||
|
|
|
|||
Loading…
Reference in New Issue