From 16af9b4c61a292d468d37240f6c8fa07b8bbccc1 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 5 Nov 2017 19:48:32 +0100 Subject: [PATCH] Style, no functional changes Make termination consistant with that last commit hrev51521. As wished and proof-read by waddlesplash. Hope all's well... --- src/apps/mediaplayer/MainWin.cpp | 3 ++- src/apps/serialconnect/SerialApp.cpp | 2 +- src/bin/mail_utils/spamdbm.cpp | 3 ++- src/kits/app/Application.cpp | 3 ++- src/kits/app/Handler.cpp | 3 ++- src/kits/app/Looper.cpp | 3 ++- src/kits/interface/Control.cpp | 2 +- src/kits/tracker/PoseViewScripting.cpp | 10 ++-------- src/kits/tracker/TrackerScripting.cpp | 12 ++---------- src/servers/notification/NotificationView.cpp | 3 ++- src/servers/notification/NotificationWindow.cpp | 3 ++- src/servers/print/PrintServerApp.Scripting.cpp | 1 + src/servers/print/Printer.Scripting.cpp | 1 + src/servers/print/Transport.Scripting.cpp | 1 + 14 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index c8efaea915..b63b1934bb 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -180,7 +180,8 @@ static property_info sPropertyInfo[] = { B_TRANSLATE("Seek by the specified amounts of microseconds."), 0, { B_INT64_TYPE } }, - { 0, { 0 }, { 0 }, 0, 0 } + + { 0 } }; diff --git a/src/apps/serialconnect/SerialApp.cpp b/src/apps/serialconnect/SerialApp.cpp index 6082cabe69..896939a00f 100644 --- a/src/apps/serialconnect/SerialApp.cpp +++ b/src/apps/serialconnect/SerialApp.cpp @@ -56,7 +56,7 @@ static property_info sProperties[] = { "get or set the port device", 0, { B_STRING_TYPE } }, - { NULL } + { 0 } }; const BPropertyInfo SerialApp::kScriptingProperties(sProperties); diff --git a/src/bin/mail_utils/spamdbm.cpp b/src/bin/mail_utils/spamdbm.cpp index d89cd2885f..721c2e49c9 100644 --- a/src/bin/mail_utils/spamdbm.cpp +++ b/src/bin/mail_utils/spamdbm.cpp @@ -851,7 +851,8 @@ static struct property_info g_ScriptingPropertyList [] = {B_DIRECT_SPECIFIER, 0}, "Gets the method used for combining the " "individual word ratios into an overall score.", PN_SCORING_MODE, {}, {}, {}}, - {0, {0}, {0}, 0, 0, {}, {}, {}} /* End of list of property commands. */ + + { 0 } }; diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index 51db371967..4598a765f3 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -165,7 +165,8 @@ static property_info sPropertyInfo[] = { {}, {} }, - {} + + { 0 } }; diff --git a/src/kits/app/Handler.cpp b/src/kits/app/Handler.cpp index b158f0ee8a..72f4b38368 100644 --- a/src/kits/app/Handler.cpp +++ b/src/kits/app/Handler.cpp @@ -83,7 +83,8 @@ static property_info sHandlerPropInfo[] = { {}, {} }, - {} + + { 0 } }; bool FilterDeleter(void* filter); diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index 579d1db4f0..809acc59dd 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -94,7 +94,8 @@ static property_info sLooperPropInfo[] = { {}, {} }, - {} + + { 0 } }; struct _loop_data_ { diff --git a/src/kits/interface/Control.cpp b/src/kits/interface/Control.cpp index 6b3dbe8e56..37aacc0560 100644 --- a/src/kits/interface/Control.cpp +++ b/src/kits/interface/Control.cpp @@ -45,7 +45,7 @@ static property_info sPropertyList[] = { { B_INT32_TYPE } }, - {0} + { 0 } }; diff --git a/src/kits/tracker/PoseViewScripting.cpp b/src/kits/tracker/PoseViewScripting.cpp index e6619fad95..04b98fce02 100644 --- a/src/kits/tracker/PoseViewScripting.cpp +++ b/src/kits/tracker/PoseViewScripting.cpp @@ -183,14 +183,8 @@ const property_info kPosesPropertyList[] = { {}, {} }, - { NULL, - {}, - {}, - NULL, 0, - {}, - {}, - {} - } + + { 0 } }; diff --git a/src/kits/tracker/TrackerScripting.cpp b/src/kits/tracker/TrackerScripting.cpp index a94fc9573e..1cd6cee5e8 100644 --- a/src/kits/tracker/TrackerScripting.cpp +++ b/src/kits/tracker/TrackerScripting.cpp @@ -93,16 +93,8 @@ const property_info kTrackerPropertyList[] = { {}, {} }, - { - NULL, - {}, - {}, - NULL, - 0, - {}, - {}, - {} - } + + { 0 } }; diff --git a/src/servers/notification/NotificationView.cpp b/src/servers/notification/NotificationView.cpp index aa89d54175..bb11ef4f67 100644 --- a/src/servers/notification/NotificationView.cpp +++ b/src/servers/notification/NotificationView.cpp @@ -54,7 +54,8 @@ property_info message_prop_list[] = { {B_DIRECT_SPECIFIER, 0}, "get icon as an archived bitmap"}, { "progress", {B_GET_PROPERTY, B_SET_PROPERTY, 0}, {B_DIRECT_SPECIFIER, 0}, "get the progress (between 0.0 and 1.0)"}, - { NULL } + + { 0 } }; diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp index 561e5196bd..bad3683f98 100644 --- a/src/servers/notification/NotificationWindow.cpp +++ b/src/servers/notification/NotificationWindow.cpp @@ -45,7 +45,8 @@ property_info main_prop_list[] = { "create a message"}, {"message", {B_SET_PROPERTY, 0}, {B_INDEX_SPECIFIER, 0}, "modify a message"}, - {0} + + { 0 } }; diff --git a/src/servers/print/PrintServerApp.Scripting.cpp b/src/servers/print/PrintServerApp.Scripting.cpp index 73dd981ae0..531f7efc37 100644 --- a/src/servers/print/PrintServerApp.Scripting.cpp +++ b/src/servers/print/PrintServerApp.Scripting.cpp @@ -45,6 +45,7 @@ static property_info prop_list[] = { { "UseConfigWindow", { B_GET_PROPERTY, B_SET_PROPERTY }, { B_DIRECT_SPECIFIER }, B_TRANSLATE_MARK("Show configuration window") }, + { 0 } // terminate list }; diff --git a/src/servers/print/Printer.Scripting.cpp b/src/servers/print/Printer.Scripting.cpp index 1972ca6ce3..bf386039ef 100644 --- a/src/servers/print/Printer.Scripting.cpp +++ b/src/servers/print/Printer.Scripting.cpp @@ -34,6 +34,7 @@ static property_info prop_list[] = { B_TRANSLATE_MARK("Get name of the printer add-on used for this printer") }, { "Comments", { B_GET_PROPERTY }, { B_DIRECT_SPECIFIER }, B_TRANSLATE_MARK("Get comments about this printer") }, + { 0 } // terminate list }; diff --git a/src/servers/print/Transport.Scripting.cpp b/src/servers/print/Transport.Scripting.cpp index bd668350d0..04f1f447eb 100644 --- a/src/servers/print/Transport.Scripting.cpp +++ b/src/servers/print/Transport.Scripting.cpp @@ -26,6 +26,7 @@ static property_info prop_list[] = { B_TRANSLATE_MARK("Get name of transport") }, { "Ports", { B_GET_PROPERTY }, { B_DIRECT_SPECIFIER }, B_TRANSLATE_MARK("Get currently available ports/devices") }, + { 0 } // terminate list };