simplify syntax a bit

This commit is contained in:
Andrzej Rybczak
2009-02-19 00:29:27 +01:00
parent 735cae628a
commit 7246b57d48

View File

@@ -291,17 +291,17 @@ void Window::Hide(char x) const
void Window::Bold(bool bold) const void Window::Bold(bool bold) const
{ {
bold ? wattron(itsWindow, A_BOLD) : wattroff(itsWindow, A_BOLD); (bold ? wattron : wattroff)(itsWindow, A_BOLD);
} }
void Window::Reverse(bool reverse) const void Window::Reverse(bool reverse) const
{ {
reverse ? wattron(itsWindow, A_REVERSE) : wattroff(itsWindow, A_REVERSE); (reverse ? wattron : wattroff)(itsWindow, A_REVERSE);
} }
void Window::AltCharset(bool alt) const void Window::AltCharset(bool alt) const
{ {
alt ? wattron(itsWindow, A_ALTCHARSET) : wattroff(itsWindow, A_ALTCHARSET); (alt ? wattron : wattroff)(itsWindow, A_ALTCHARSET);
} }
void Window::SetTimeout(int timeout) void Window::SetTimeout(int timeout)