aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/samplenamespace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/samplenamespace.cpp')
-rw-r--r--sources/shiboken2/tests/libsample/samplenamespace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/libsample/samplenamespace.cpp b/sources/shiboken2/tests/libsample/samplenamespace.cpp
index e066869d..fc9f6d39 100644
--- a/sources/shiboken2/tests/libsample/samplenamespace.cpp
+++ b/sources/shiboken2/tests/libsample/samplenamespace.cpp
@@ -78,7 +78,7 @@ getNumber(Option opt)
retval = rand() % 100;
break;
case UnixTime:
- retval = (int) time(0);
+ retval = (int) time(nullptr);
break;
default:
retval = 0;