aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAli Tofigh <alito@webrtc.org>2022-01-25 13:27:19 +0100
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-01-26 11:05:25 +0000
commit62238097c97cac9abb628fd710980e7316733090 (patch)
tree3ee5620a267d4503634cf3a3d0c82fba57432780 /examples
parentc98687a2efe1746c8ee717e347a9c95bfeae2cef (diff)
downloadwebrtc-62238097c97cac9abb628fd710980e7316733090.tar.gz
Remove top-level const from parameters in function declarations.
This is a safe cleanup change since top-level const applied to parameters in function declarations (that are not also definitions) are ignored by the compiler. Hence, such changes do not change the type of the declared functions and are simply no-ops. Bug: webrtc:13610 Change-Id: Ibafb92c45119a6d8bdb6f9109aa8dad6385163a9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249086 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35802}
Diffstat (limited to 'examples')
-rw-r--r--examples/androidvoip/jni/android_voip_client.h4
-rw-r--r--examples/unityplugin/simple_peer_connection.h6
-rw-r--r--examples/unityplugin/unity_plugin_apis.h8
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/androidvoip/jni/android_voip_client.h b/examples/androidvoip/jni/android_voip_client.h
index bfca7e8b79..8e1edd5ef9 100644
--- a/examples/androidvoip/jni/android_voip_client.h
+++ b/examples/androidvoip/jni/android_voip_client.h
@@ -147,8 +147,8 @@ class AndroidVoipClient : public webrtc::Transport,
// Overloaded methods having native C++ variables as arguments.
void SetEncoder(const std::string& encoder);
void SetDecoders(const std::vector<std::string>& decoders);
- void SetLocalAddress(const std::string& ip_address, const int port_number);
- void SetRemoteAddress(const std::string& ip_address, const int port_number);
+ void SetLocalAddress(const std::string& ip_address, int port_number);
+ void SetRemoteAddress(const std::string& ip_address, int port_number);
// Methods to send and receive RTP/RTCP packets. Takes in a
// copy of a packet as a vector to prolong the lifetime of
diff --git a/examples/unityplugin/simple_peer_connection.h b/examples/unityplugin/simple_peer_connection.h
index b99bde930e..d5cebc9940 100644
--- a/examples/unityplugin/simple_peer_connection.h
+++ b/examples/unityplugin/simple_peer_connection.h
@@ -31,7 +31,7 @@ class SimplePeerConnection : public webrtc::PeerConnectionObserver,
~SimplePeerConnection() {}
bool InitializePeerConnection(const char** turn_urls,
- const int no_of_urls,
+ int no_of_urls,
const char* username,
const char* credential,
bool is_receiver);
@@ -56,13 +56,13 @@ class SimplePeerConnection : public webrtc::PeerConnectionObserver,
ICECANDIDATEREADYTOSEND_CALLBACK callback);
bool SetRemoteDescription(const char* type, const char* sdp);
bool AddIceCandidate(const char* sdp,
- const int sdp_mlineindex,
+ int sdp_mlineindex,
const char* sdp_mid);
protected:
// create a peerconneciton and add the turn servers info to the configuration.
bool CreatePeerConnection(const char** turn_urls,
- const int no_of_urls,
+ int no_of_urls,
const char* username,
const char* credential);
void CloseDataChannel();
diff --git a/examples/unityplugin/unity_plugin_apis.h b/examples/unityplugin/unity_plugin_apis.h
index b32f9e2caf..8b8fe0fe80 100644
--- a/examples/unityplugin/unity_plugin_apis.h
+++ b/examples/unityplugin/unity_plugin_apis.h
@@ -31,7 +31,7 @@ typedef void (*DATAFROMEDATECHANNELREADY_CALLBACK)(const char* msg);
typedef void (*FAILURE_CALLBACK)(const char* msg);
typedef void (*LOCALSDPREADYTOSEND_CALLBACK)(const char* type, const char* sdp);
typedef void (*ICECANDIDATEREADYTOSEND_CALLBACK)(const char* candidate,
- const int sdp_mline_index,
+ int sdp_mline_index,
const char* sdp_mid);
typedef void (*AUDIOBUSREADY_CALLBACK)(const void* audio_data,
int bits_per_sample,
@@ -47,7 +47,7 @@ typedef void (*AUDIOBUSREADY_CALLBACK)(const void* audio_data,
extern "C" {
// Create a peerconnection and return a unique peer connection id.
WEBRTC_PLUGIN_API int CreatePeerConnection(const char** turn_urls,
- const int no_of_urls,
+ int no_of_urls,
const char* username,
const char* credential,
bool mandatory_receive_video);
@@ -75,9 +75,9 @@ WEBRTC_PLUGIN_API bool SetRemoteDescription(int peer_connection_id,
const char* type,
const char* sdp);
// Add ice candidate.
-WEBRTC_PLUGIN_API bool AddIceCandidate(const int peer_connection_id,
+WEBRTC_PLUGIN_API bool AddIceCandidate(int peer_connection_id,
const char* candidate,
- const int sdp_mlineindex,
+ int sdp_mlineindex,
const char* sdp_mid);
// Register callback functions.