Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
/ kms-core Public archive

Commit

Permalink
clang-tidy fix: [modernize-use-override]
Browse files Browse the repository at this point in the history
prefer using 'override' or (rarely) 'final' instead of 'virtual'
[modernize-use-override]
  • Loading branch information
j1elo committed Apr 3, 2018
1 parent 7546ebd commit 6346a68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
5 changes: 3 additions & 2 deletions src/server/implementation/Factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ class Factory
virtual std::string getName() const = 0;

protected:
virtual MediaObjectImpl *createObjectPointer (const boost::property_tree::ptree
&conf, const Json::Value &params) const = 0;
virtual MediaObjectImpl *createObjectPointer (
const boost::property_tree::ptree &conf,
const Json::Value &params) const = 0;
};

} /* kurento */
Expand Down
11 changes: 4 additions & 7 deletions tests/server/sdpEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@ struct GF {
class SdpEndpointFactory : public Factory
{
public:
std::string getName() const
{
return "SdpEndpointFactory";
}
std::string getName () const override { return "SdpEndpointFactory"; }

protected:
MediaObjectImpl *createObjectPointer (const boost::property_tree::ptree
&conf, const Json::Value &params) const
MediaObjectImpl *createObjectPointer (const boost::property_tree::ptree &conf,
const Json::Value &params) const override
{
std::string mediaPipelineId = params["mediaPipeline"].asString ();
bool useIpv6 = false;;
bool useIpv6 = false;

if (params.isMember ("useIpv6") ) {
Json::Value useIpv6Param = params["useIpv6"];
Expand Down
9 changes: 3 additions & 6 deletions tests/server/uriEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ struct GF {
class UriEndpointFactory : public Factory
{
public:
std::string getName() const
{
return "UriEndpointFactory";
}
std::string getName () const override { return "UriEndpointFactory"; }

protected:
MediaObjectImpl *createObjectPointer (const boost::property_tree::ptree
&conf, const Json::Value &params) const
MediaObjectImpl *createObjectPointer (const boost::property_tree::ptree &conf,
const Json::Value &params) const override
{
std::string mediaPipelineId = params["mediaPipeline"].asString ();
std::string uri = params["uri"].asString ();
Expand Down

0 comments on commit 6346a68

Please sign in to comment.