Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces. Semicolons in comments became full stops. Designated initializers may leave fields out without a warning.
This commit is contained in:
1 parent
40f6b554b5
commit
7afdf709c3
176 files changed
+20500
-19048
No files matched your search
+5
-4
@@ -5,11 +5,12 @@
|
||||
|
||||
#include "path.h"
|
||||
|
||||
std::filesystem::path preferences_directory_get()
|
||||
{
|
||||
std::filesystem::path preferences_directory_get()
|
||||
{
|
||||
auto sdlPath = SDL_GetPrefPath(nullptr, "anm2ed");
|
||||
if (!sdlPath) return {};
|
||||
if (!sdlPath)
|
||||
return {};
|
||||
auto filePath = path_from_utf8(sdlPath);
|
||||
SDL_free(sdlPath);
|
||||
return filePath;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user