Fix warnings reported by -Wignored-qualifiers

This commit is contained in:
Peter Keresztes Schmidt 2021-02-26 19:31:32 +01:00
parent 445d815071
commit dffb2d2c87
4 changed files with 8 additions and 8 deletions

View File

@ -459,7 +459,7 @@ public:
VideoWriter GetOptVideoWriter() const { return videowriter; } VideoWriter GetOptVideoWriter() const { return videowriter; }
//const std::vector<EncoderParameter_t>* GetEncoderParams() const { return &encoderparamsvec; } //const std::vector<EncoderParameter_t>* GetEncoderParams() const { return &encoderparamsvec; }
const std::string &GetEncoderOptions() const { return encoderparams; } const std::string &GetEncoderOptions() const { return encoderparams; }
const int OutputCodec() const { return output_codec; } int OutputCodec() const { return output_codec; }
const std::string &Encoder() const { return encoder; } const std::string &Encoder() const { return encoder; }
const std::string &OutputContainer() const { return output_container; } const std::string &OutputContainer() const { return output_container; }

View File

@ -114,7 +114,7 @@ public:
{ {
return( mTransport ); return( mTransport );
} }
const int getPayloadType() const int getPayloadType() const
{ {
return( mPayloadType ); return( mPayloadType );
} }
@ -136,7 +136,7 @@ public:
mControlUrl = controlUrl; mControlUrl = controlUrl;
} }
const int getClock() const { int getClock() const {
return( mClock ); return( mClock );
} }
void setClock( int clock ) { void setClock( int clock ) {
@ -157,10 +157,10 @@ public:
void setSprops(const std::string &props) { void setSprops(const std::string &props) {
mSprops = props; mSprops = props;
} }
const std::string getSprops() const { std::string getSprops() const {
return ( mSprops ); return ( mSprops );
} }
const double getFrameRate() const { double getFrameRate() const {
return( mFrameRate ); return( mFrameRate );
} }
void setFrameRate( double frameRate ) { void setFrameRate( double frameRate ) {

View File

@ -48,8 +48,8 @@ public:
unsigned int Id() const { return id; } unsigned int Id() const { return id; }
const char *Name() const { return name; } const char *Name() const { return name; }
const char *Path() const { return path; } const char *Path() const { return path; }
const Schemes Scheme() const { return scheme; } Schemes Scheme() const { return scheme; }
const std::string SchemeString() const { return scheme_str; } std::string SchemeString() const { return scheme_str; }
}; };
#endif // ZM_STORAGE_H #endif // ZM_STORAGE_H

View File

@ -52,7 +52,7 @@ class User {
Copy(u); return *this; Copy(u); return *this;
} }
const int Id() const { return id; } int Id() const { return id; }
const char *getUsername() const { return username; } const char *getUsername() const { return username; }
const char *getPassword() const { return password; } const char *getPassword() const { return password; }
bool isEnabled() const { return enabled; } bool isEnabled() const { return enabled; }