aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/str.h')
-rw-r--r--sources/shiboken2/tests/libsample/str.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken2/tests/libsample/str.h b/sources/shiboken2/tests/libsample/str.h
index d3bcbaafc..2f7cee8c3 100644
--- a/sources/shiboken2/tests/libsample/str.h
+++ b/sources/shiboken2/tests/libsample/str.h
@@ -49,7 +49,7 @@ public:
char get_char(int pos) const;
bool set_char(int pos, char ch);
- int toInt(bool* ok = 0, int base = 10) const;
+ int toInt(bool *ok = nullptr, int base = 10) const;
void show() const;
@@ -71,8 +71,8 @@ private:
LIBSAMPLE_API Str operator+(int number, const Str& str);
LIBSAMPLE_API unsigned int strHash(const Str& str);
-typedef Str PStr;
+using PStr = Str;
LIBSAMPLE_API void changePStr(PStr* pstr, const char* suffix);
-LIBSAMPLE_API void duplicatePStr(PStr* pstr = 0);
+LIBSAMPLE_API void duplicatePStr(PStr *pstr = nullptr);
#endif // STR_H