Update sharedpointer.md (#77)

This commit is contained in:
soyoo 2020-03-17 02:39:36 +08:00 committed by GitHub
parent 5eaadcd350
commit d2c9deec1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Nut can compile in *shared pointer* mode or *regular* mode 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. 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\** 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!