Skip to content

Commit c26a3d4

Browse files
committed
reformatted
1 parent 471782b commit c26a3d4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/keyboard_control.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class KeyboardControl
2727
KeyboardControl() = delete;
2828
KeyboardControl(const KeyboardControl&) = delete;
2929

30-
void
31-
operator()()
30+
void operator()()
3231
{
3332
std::cout << "Press <space> to stop/resume playing." << std::endl;
3433
std::cout << "Press n/p to play next/previous station." << std::endl;
@@ -76,8 +75,7 @@ class KeyboardControl
7675

7776
bool paused = false;
7877

79-
int
80-
getch()
78+
int getch()
8179
{
8280
static struct termios oldt, newt;
8381
tcgetattr(STDIN_FILENO, &oldt); // save old settings

src/playlist_decoder.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ class PlaylistDecoder
3535
virtual std::string desc() const = 0;
3636

3737
protected:
38-
void
39-
trim(std::string& s)
38+
void trim(std::string& s)
4039
{
4140
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
4241
s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());

0 commit comments

Comments
 (0)