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; }
//const std::vector<EncoderParameter_t>* GetEncoderParams() const { return &encoderparamsvec; }
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 &OutputContainer() const { return output_container; }

View File

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

View File

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

View File

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