From ece43dd716e78f3dbc1644bad9fd69de4e692edd Mon Sep 17 00:00:00 2001 From: Chris Blackbourn Date: Tue, 21 Feb 2023 17:07:02 +1300 Subject: [PATCH] Cleanup: format --- source/blender/blenlib/intern/storage_apple.mm | 11 ++++++----- source/blender/blentranslation/BLT_translation.h | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source/blender/blenlib/intern/storage_apple.mm b/source/blender/blenlib/intern/storage_apple.mm index bc071872c6d..4e39f0b6874 100644 --- a/source/blender/blenlib/intern/storage_apple.mm +++ b/source/blender/blenlib/intern/storage_apple.mm @@ -15,7 +15,6 @@ #include "BLI_path_util.h" #include "BLI_string.h" - /* Extended file attribute used by OneDrive to mark placeholder files. */ static const char *ONEDRIVE_RECALLONOPEN_ATTRIBUTE = "com.microsoft.OneDrive.RecallOnOpen"; @@ -188,7 +187,8 @@ const char *BLI_expand_tilde(const char *path_with_tilde) return path_expanded; } -char *BLI_current_working_dir(char *dir, const size_t maxncpy) { +char *BLI_current_working_dir(char *dir, const size_t maxncpy) +{ /* Can't just copy to the *dir pointer, as [path getCString gets grumpy.*/ static char path_expanded[PATH_MAX]; @autoreleasepool { @@ -200,10 +200,11 @@ char *BLI_current_working_dir(char *dir, const size_t maxncpy) { } } -bool BLI_change_working_dir(const char* dir) { +bool BLI_change_working_dir(const char *dir) +{ @autoreleasepool { - NSString* path = [[NSString alloc] initWithUTF8String: dir]; - if ([[NSFileManager defaultManager] changeCurrentDirectoryPath: path] == YES) { + NSString *path = [[NSString alloc] initWithUTF8String:dir]; + if ([[NSFileManager defaultManager] changeCurrentDirectoryPath:path] == YES) { return false; } else { diff --git a/source/blender/blentranslation/BLT_translation.h b/source/blender/blentranslation/BLT_translation.h index f788da8d429..1ee40b1d890 100644 --- a/source/blender/blentranslation/BLT_translation.h +++ b/source/blender/blentranslation/BLT_translation.h @@ -126,7 +126,7 @@ const char *BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid #define BLT_I18NCONTEXT_EDITOR_VIEW3D "View3D" #define BLT_I18NCONTEXT_EDITOR_FILEBROWSER "File browser" - /* Generic contexts. */ +/* Generic contexts. */ #define BLT_I18NCONTEXT_VIRTUAL_REALITY "Virtual reality" #define BLT_I18NCONTEXT_CONSTRAINT "Constraint" @@ -194,7 +194,7 @@ typedef struct { BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_ID_WINDOWMANAGER, "id_windowmanager"), \ BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_EDITOR_VIEW3D, "editor_view3d"), \ BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_EDITOR_FILEBROWSER, "editor_filebrowser"), \ - BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_VIRTUAL_REALITY, "virtual_reality"), \ + BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_VIRTUAL_REALITY, "virtual_reality"), \ BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_CONSTRAINT, "constraint"), \ { \ NULL, NULL, NULL \