Nonce::{cc_str,data}: Make const
Found by cppcheck. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
866e1399d5
commit
8c5ded4e6f
+2
-2
@@ -97,8 +97,8 @@ namespace Crypto {
|
||||
Nonce( uint64_t val );
|
||||
Nonce( char *s_bytes, size_t len );
|
||||
|
||||
string cc_str( void ) { return string( (char *)( bytes + 4 ), 8 ); }
|
||||
char *data( void ) { return bytes; }
|
||||
string cc_str( void ) const { return string( bytes + 4, 8 ); }
|
||||
const char *data( void ) const { return bytes; }
|
||||
uint64_t val( void );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user