Resolve cppcheck issues.

Signed-off-by: John Hood <cgull@glup.org>
This commit is contained in:
John Hood
2015-03-30 22:17:05 -04:00
parent c064ec1946
commit 026a3f0346
11 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ namespace Terminal {
int wait_time( uint64_t now ) const;
/* interface for Network::Transport */
void subtract( const Complete * ) {}
void subtract( const Complete * ) const {}
std::string diff_from( const Complete &existing ) const;
void apply_string( std::string diff );
bool operator==( const Complete &x ) const;
+1 -1
View File
@@ -123,7 +123,7 @@ void UserStream::apply_string( string diff )
}
}
const Parser::Action *UserStream::get_action( unsigned int i )
const Parser::Action *UserStream::get_action( unsigned int i ) const
{
switch( actions[ i ].type ) {
case UserByteType:
+2 -2
View File
@@ -84,7 +84,7 @@ namespace Network {
bool empty( void ) const { return actions.empty(); }
size_t size( void ) const { return actions.size(); }
const Parser::Action *get_action( unsigned int i );
const Parser::Action *get_action( unsigned int i ) const;
/* interface for Network::Transport */
void subtract( const UserStream *prefix );
@@ -92,7 +92,7 @@ namespace Network {
void apply_string( string diff );
bool operator==( const UserStream &x ) const { return actions == x.actions; }
bool compare( const UserStream & ) const { return false; }
bool compare( const UserStream & ) { return false; }
};
}