Skip to content

Commit

Permalink
Fix formatting, fix non-bug error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ierton committed Feb 27, 2013
1 parent 5faba18 commit 4a562c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion XKbSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int main( int argc, char* argv[] )
return 2;
}
catch(std::exception & err) {
cerr << "xkb-switch: bug: " << err.what() << endl;
cerr << "xkb-switch: " << err.what() << endl;
cerr << "xkb-switch: layouts: " << print_layouts(syms) << endl;
}
}
14 changes: 7 additions & 7 deletions XKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ typedef std::vector<std::string> string_vector;
class XKeyboard
{
public:
Display* _display;
int _deviceId;
XkbDescRec* _kbdDescPtr;
Display* _display;
int _deviceId;
XkbDescRec* _kbdDescPtr;

XKeyboard();
~XKeyboard();
XKeyboard();
~XKeyboard();

// Gets the current layout
int get_group() const;
int get_group() const;

// Sets the layout
void set_group(int num);
void set_group(int num);

// Returns keyboard layout string
std::string get_kb_string();
Expand Down

0 comments on commit 4a562c1

Please sign in to comment.