Skip to content

Commit

Permalink
modernizing
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Dec 4, 2024
1 parent 19e16bf commit 8026a8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/ticcutils/CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace TiCC {
class CL_Options {
friend std::ostream& operator<<( std::ostream&, const CL_Options& );
public:
typedef std::vector<CL_item>::const_iterator const_iterator;
using const_iterator = std::vector<CL_item>::const_iterator;
CL_Options();
CL_Options( const std::string&, const std::string& );
void allow_args( const std::string& = "", const std::string& = "" );
Expand Down
4 changes: 2 additions & 2 deletions include/ticcutils/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ namespace TiCC {
/// There is an implicit \b global section when the section is unnamed.
class Configuration {
public:
typedef std::map<std::string,std::string> ssMap;
typedef std::map<std::string, ssMap> sssMap;
using ssMap = std::map<std::string,std::string>;
using sssMap = std::map<std::string, ssMap>;
Configuration();
void merge( const Configuration&, bool = false );
bool fill( const std::string& );
Expand Down
4 changes: 1 addition & 3 deletions include/ticcutils/LogBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ template <class charT, class traits = std::char_traits<charT> >
basic_log_buffer& operator=( const basic_log_buffer& ) = delete;
};

typedef basic_log_buffer<char, std::char_traits<char> > LogBuffer;
typedef basic_log_buffer<wchar_t, std::char_traits<wchar_t> > wLogBuffer;

using LogBuffer = basic_log_buffer<char, std::char_traits<char>>;

template <class charT, class traits >
basic_log_buffer<charT,traits>::~basic_log_buffer(){
Expand Down

0 comments on commit 8026a8d

Please sign in to comment.