diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-30 07:52:39 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-30 12:24:19 +0200 |
commit | 7297b8a9ade6854eec79eaf046550b3f0e288fbe (patch) | |
tree | cf37e6ef08d5d081a3ed30d946de0eb48cc98ad7 /src/helpers.cpp | |
parent | 798c9b31214520b2457d7cc6a9ebc4903cf0aa49 (diff) |
use std::bind instead of passing void pointers around
Diffstat (limited to 'src/helpers.cpp')
-rw-r--r-- | src/helpers.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helpers.cpp b/src/helpers.cpp index 5fc8d586..6fb813aa 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -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]; |