Revision: 27457
          http://sourceforge.net/p/bibdesk/svn/27457
Author:   hofman
Date:     2022-05-22 15:06:12 +0000 (Sun, 22 May 2022)
Log Message:
-----------
use Elvis operator

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-22 14:53:51 UTC (rev 27456)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-22 15:06:12 UTC (rev 27457)
@@ -2492,15 +2492,15 @@
         [self synchronizeWindowTitleWithDocumentName];
         [authorTableView reloadData];
         if (editorFlags.ignoreFieldChange == NO) {
-           // make a copy of the current value, so we don't overwrite it when 
we set the field value to the text storage
+            // make a copy of the current value, so we don't overwrite it when 
we set the field value to the text storage
             NSString *tmpValue = [[publication valueOfField:BDSKAnnoteString 
inherit:NO] copy];
-            [notesView setString:(tmpValue == nil ? @"" : tmpValue)];
+            [notesView setString:tmpValue ?: @""];
             [tmpValue release];
             tmpValue = [[publication valueOfField:BDSKAbstractString 
inherit:NO] copy];
-            [abstractView setString:(tmpValue == nil ? @"" : tmpValue)];
+            [abstractView setString:tmpValue ?: @""];
             [tmpValue release];
             tmpValue = [[publication valueOfField:BDSKRssDescriptionString 
inherit:NO] copy];
-            [rssDescriptionView setString:(tmpValue == nil ? @"" : tmpValue)];
+            [rssDescriptionView setString:tmpValue ?: @""];
             [tmpValue release];
             if(currentEditedView)
                 [[self window] makeFirstResponder:[self window]];

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