use std::bind instead of passing void pointers around
This commit is contained in:
@@ -39,11 +39,6 @@
|
||||
#include "outputs.h"
|
||||
#include "visualizer.h"
|
||||
|
||||
std::string StringPairToString(const std::pair<std::string, std::string> &pair, void *)
|
||||
{
|
||||
return pair.first;
|
||||
}
|
||||
|
||||
void ParseArgv(int argc, char **argv)
|
||||
{
|
||||
bool quit = 0;
|
||||
@@ -275,6 +270,11 @@ void ParseArgv(int argc, char **argv)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
std::string StringPairToString(const std::pair<std::string, std::string> &pair)
|
||||
{
|
||||
return pair.first;
|
||||
}
|
||||
|
||||
std::string Timestamp(time_t t)
|
||||
{
|
||||
char result[32];
|
||||
|
||||
Reference in New Issue
Block a user