aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/util.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/util.cxx')
-rw-r--r--common/rfb/util.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rfb/util.cxx b/common/rfb/util.cxx
index 48f59846..3c62b1df 100644
--- a/common/rfb/util.cxx
+++ b/common/rfb/util.cxx
@@ -40,7 +40,7 @@ namespace rfb {
std::string out;
va_start(ap, fmt);
- len = vsnprintf(NULL, 0, fmt, ap);
+ len = vsnprintf(nullptr, 0, fmt, ap);
va_end(ap);
if (len < 0)
@@ -68,13 +68,13 @@ namespace rfb {
start = src;
do {
stop = strchr(start, delimiter);
- if (stop == NULL) {
+ if (stop == nullptr) {
out.push_back(start);
} else {
out.push_back(std::string(start, stop-start));
start = stop + 1;
}
- } while (stop != NULL);
+ } while (stop != nullptr);
return out;
}
@@ -621,7 +621,7 @@ namespace rfb {
{
struct timeval now;
- gettimeofday(&now, NULL);
+ gettimeofday(&now, nullptr);
return msBetween(then, &now);
}