fix some warnings, format

This commit is contained in:
Chris Marsh
2017-07-27 13:52:37 -07:00
parent f617f3b78d
commit bfcfd10baa
5 changed files with 13 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
template <size_t Len>
inline size_t StringCopy(char (&dest)[Len], const char* src)
{
if (!dest || !src || !Len) {
if (!src || !Len) {
return 0;
}
size_t copied;
@@ -71,7 +71,11 @@ public:
assert(!originalPtr && !originalSize);
return Malloc(newSize);
}
static void Free(void* ptr) { /* shrug */}
static void Free(void* ptr)
{
/* shrug */
(void)ptr;
}
};
template <size_t Size>