Revision: 27450
          http://sourceforge.net/p/bibdesk/svn/27450
Author:   hofman
Date:     2022-05-21 17:19:31 +0000 (Sat, 21 May 2022)
Log Message:
-----------
make variables more local

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-21 17:15:27 UTC (rev 27449)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-21 17:19:31 UTC (rev 27450)
@@ -2520,11 +2520,9 @@
         if (([NSString isEmptyAsComplexString:newValue] != [NSString 
isEmptyAsComplexString:oldValue]) && [addedFields containsObject:changeKey] == 
NO && [[[BDSKTypeManager sharedManager] standardFieldsForType:[publication 
pubType]] containsObject:changeKey] == NO) {
                        // a custom field was added or removed
             NSInteger editedRow = [tableView editedTextRow];
-            NSString *tmpValue = nil;
-            BDSKEditorTextField *textField = nil;
             if (editedRow != -1 && [[fields objectAtIndex:editedRow] 
isEqualToString:changeKey]) {
-                tmpValue = [publication valueOfField:changeKey] ?: @"";
-                textField = [self textFieldAtRow:editedRow];
+                NSString *tmpValue = [publication valueOfField:changeKey] ?: 
@"";
+                BDSKEditorTextField *textField = [self 
textFieldAtRow:editedRow];
                 [[textField currentEditor] setString:[textField formatter] ? 
[[textField formatter] editingStringForObjectValue:tmpValue] : tmpValue];
             }
             [self resetFields];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to