Skip to content

Commit e5aa4c2

Browse files
committed
requesthandler: Rename GetSceneItemSourceName to GetSceneItemSource
Not an API break, this was introduced just a few commits ago.
1 parent 4cf8de8 commit e5aa4c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/requesthandler/RequestHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const std::unordered_map<std::string, RequestMethodHandler> RequestHandler::_han
126126
{"GetSceneItemList", &RequestHandler::GetSceneItemList},
127127
{"GetGroupSceneItemList", &RequestHandler::GetGroupSceneItemList},
128128
{"GetSceneItemId", &RequestHandler::GetSceneItemId},
129-
{"GetSceneItemSourceName", &RequestHandler::GetSceneItemSourceName},
129+
{"GetSceneItemSource", &RequestHandler::GetSceneItemSource},
130130
{"CreateSceneItem", &RequestHandler::CreateSceneItem},
131131
{"RemoveSceneItem", &RequestHandler::RemoveSceneItem},
132132
{"DuplicateSceneItem", &RequestHandler::DuplicateSceneItem},

src/requesthandler/RequestHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class RequestHandler {
145145
RequestResult GetSceneItemList(const Request &);
146146
RequestResult GetGroupSceneItemList(const Request &);
147147
RequestResult GetSceneItemId(const Request &);
148-
RequestResult GetSceneItemSourceName(const Request &);
148+
RequestResult GetSceneItemSource(const Request &);
149149
RequestResult CreateSceneItem(const Request &);
150150
RequestResult RemoveSceneItem(const Request &);
151151
RequestResult DuplicateSceneItem(const Request &);

src/requesthandler/RequestHandler_SceneItems.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RequestResult RequestHandler::GetSceneItemId(const Request &request)
132132
}
133133

134134
/**
135-
* Gets the source name of a scene item.
135+
* Gets the source associated with a scene item.
136136
*
137137
* @requestField ?sceneName | String | Name of the scene the item is in
138138
* @requestField ?sceneUuid | String | UUID of the scene the item is in
@@ -141,14 +141,14 @@ RequestResult RequestHandler::GetSceneItemId(const Request &request)
141141
* @responseField sourceName | String | Name of the source associated with the scene item
142142
* @responseField sourceUuid | String | UUID of the source associated with the scene item
143143
*
144-
* @requestType GetSceneItemSourceName
144+
* @requestType GetSceneItemSource
145145
* @complexity 3
146146
* @rpcVersion -1
147147
* @initialVersion 5.4.0
148148
* @api requests
149149
* @category scene items
150150
*/
151-
RequestResult RequestHandler::GetSceneItemSourceName(const Request &request) // TODO: Rename to `GetSceneItemSource`
151+
RequestResult RequestHandler::GetSceneItemSource(const Request &request)
152152
{
153153
RequestStatus::RequestStatus statusCode;
154154
std::string comment;

0 commit comments

Comments
 (0)