summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/uvector.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/uvector.h')
-rw-r--r--thirdparty/icu4c/common/uvector.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/thirdparty/icu4c/common/uvector.h b/thirdparty/icu4c/common/uvector.h
index 1eb7d136e7..1b2a58da86 100644
--- a/thirdparty/icu4c/common/uvector.h
+++ b/thirdparty/icu4c/common/uvector.h
@@ -161,11 +161,11 @@ public:
UBool equals(const UVector &other) const;
- inline void* firstElement(void) const {return elementAt(0);}
+ inline void* firstElement() const {return elementAt(0);}
- inline void* lastElement(void) const {return elementAt(count-1);}
+ inline void* lastElement() const {return elementAt(count-1);}
- inline int32_t lastElementi(void) const {return elementAti(count-1);}
+ inline int32_t lastElementi() const {return elementAti(count-1);}
int32_t indexOf(void* obj, int32_t startIndex = 0) const;
@@ -187,9 +187,9 @@ public:
void removeAllElements();
- inline int32_t size(void) const {return count;}
+ inline int32_t size() const {return count;}
- inline UBool isEmpty(void) const {return count == 0;}
+ inline UBool isEmpty() const {return count == 0;}
UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
@@ -197,7 +197,7 @@ public:
* Change the size of this vector as follows: If newSize is
* smaller, then truncate the array, possibly deleting held
* elements for i >= newSize. If newSize is larger, grow the
- * array, filling in new slots with NULL.
+ * array, filling in new slots with nullptr.
*/
void setSize(int32_t newSize, UErrorCode &status);
@@ -328,20 +328,20 @@ public:
// It's okay not to have a virtual destructor (in UVector)
// because UStack has no special cleanup to do.
- inline UBool empty(void) const {return isEmpty();}
+ inline UBool empty() const {return isEmpty();}
- inline void* peek(void) const {return lastElement();}
+ inline void* peek() const {return lastElement();}
- inline int32_t peeki(void) const {return lastElementi();}
+ inline int32_t peeki() const {return lastElementi();}
/**
* Pop and return an element from the stack.
* For stacks with a deleter function, the caller takes ownership
* of the popped element.
*/
- void* pop(void);
+ void* pop();
- int32_t popi(void);
+ int32_t popi();
inline void* push(void* obj, UErrorCode &status) {
if (hasDeleter()) {