util/{Const,Writable}Buffer: eliminate static method Null(), use nullptr cast instead

This commit is contained in:
Max Kellermann
2017-11-21 12:43:09 +01:00
parent 23dff4f209
commit 65059f2add
4 changed files with 3 additions and 19 deletions

View File

@@ -66,12 +66,12 @@ mod_loadfile(DecoderClient *client, InputStream &is)
if (size == 0) {
LogWarning(modplug_domain, "file is empty");
return { nullptr, 0 };
return nullptr;
}
if (size > MODPLUG_FILE_LIMIT) {
LogWarning(modplug_domain, "file too large");
return { nullptr, 0 };
return nullptr;
}
buffer.size = size;