diff options
Diffstat (limited to 'doc/man/man3/qmemarray.3qt')
-rw-r--r-- | doc/man/man3/qmemarray.3qt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/man/man3/qmemarray.3qt b/doc/man/man3/qmemarray.3qt index 344e0a78b..40f2c2074 100644 --- a/doc/man/man3/qmemarray.3qt +++ b/doc/man/man3/qmemarray.3qt @@ -161,7 +161,7 @@ The QPtrVector collection class is also a kind of array. Like most collection cl .PP QMemArray uses explicit sharing with a reference count. If more than one array shares common data and one of the arrays is modified, all the arrays are modified. .PP -The benefit of sharing is that a program does not need to duplicate data when it is not retquired, which results in lower memory use and less copying of data. +The benefit of sharing is that a program does not need to duplicate data when it is not required, which results in lower memory use and less copying of data. .PP An alternative to QMemArray is QValueVector. The QValueVector class also provides an array of objects, but can deal with objects that have constructors (specifically a copy constructor and a default constructor). QValueVector provides an STL-compatible syntax and is implicitly shared. .PP @@ -281,7 +281,7 @@ You can make a shallow copy of the array with assign() (or operator=()) and a de .PP Search for values in the array with find() and contains(). For sorted arrays (see sort()) you can search using bsearch(). .PP -You can set the data directly using setRawData() and resetRawData(), although this retquires care. +You can set the data directly using setRawData() and resetRawData(), although this requires care. .PP See also Shared Classes and Non-GUI Classes. .SS "Member Type Documentation" |