summaryrefslogtreecommitdiff
path: root/src/mir_app/src/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app/src/path.cpp')
-rw-r--r--src/mir_app/src/path.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/path.cpp b/src/mir_app/src/path.cpp
index 6d69012470..5c97c7efde 100644
--- a/src/mir_app/src/path.cpp
+++ b/src/mir_app/src/path.cpp
@@ -286,7 +286,7 @@ XCHAR *ReplaceVariables(const XCHAR *str, MCONTACT hContact, REPLACEVARSARRAY *v
if (!str)
return nullptr;
- const XCHAR *varStart = 0, *p;
+ const XCHAR *varStart = nullptr, *p;
size_t length = 0;
bool bFree;
@@ -302,7 +302,7 @@ XCHAR *ReplaceVariables(const XCHAR *str, MCONTACT hContact, REPLACEVARSARRAY *v
else // variable not found
length += p-varStart+2;
- varStart = 0;
+ varStart = nullptr;
}
else varStart = p+1;
}
@@ -331,7 +331,7 @@ XCHAR *ReplaceVariables(const XCHAR *str, MCONTACT hContact, REPLACEVARSARRAY *v
_xcsncpy(q, varStart-1, p-varStart+2);
q += p-varStart+2;
}
- varStart = 0;
+ varStart = nullptr;
}
else varStart = p+1;
}