From 0d8ade268747339452d78d3ba8331eaacf738348 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sun, 13 Jan 2013 04:11:05 +0100 Subject: [PATCH] Insignificant stylistic change --- Frameworks/DocumentWindow/src/DocumentController.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frameworks/DocumentWindow/src/DocumentController.mm b/Frameworks/DocumentWindow/src/DocumentController.mm index 7451b71e..56d42659 100644 --- a/Frameworks/DocumentWindow/src/DocumentController.mm +++ b/Frameworks/DocumentWindow/src/DocumentController.mm @@ -1777,10 +1777,10 @@ static NSUInteger DisableSessionSavingCount = 0; { NSMutableDictionary* res = [NSMutableDictionary dictionary]; - if(controller.defaultProjectPath) - res[@"projectPath"] = controller.defaultProjectPath; - if(controller.fileBrowserHistory) - res[@"fileBrowserState"] = controller.fileBrowserHistory; + if(NSString* projectPath = controller.defaultProjectPath) + res[@"projectPath"] = projectPath; + if(NSDictionary* history = controller.fileBrowserHistory) + res[@"fileBrowserState"] = history; res[@"windowFrame"] = NSStringFromRect([controller.window frame]); res[@"miniaturized"] = @([controller.window isMiniaturized]);