From 8ba652eb07f69d68ad16b2f21b3763d76b79c848 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 10 Jan 2016 07:08:55 +0100 Subject: [PATCH] code improvement --- src/foptiattr.cpp | 2 +- test/term-attributes.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/foptiattr.cpp b/src/foptiattr.cpp index 179eac13..1d31d926 100644 --- a/src/foptiattr.cpp +++ b/src/foptiattr.cpp @@ -849,7 +849,7 @@ short FOptiAttr::vga2ansi (register short color) // 1 1 1 0 | 1 0 1 1 // 1 1 1 1 | 1 1 1 1 - if ( ! color < 0 && color < 16 ) + if ( color >= 0 && color < 16 ) { static const short lookup_table[] = { diff --git a/test/term-attributes.cpp b/test/term-attributes.cpp index 7a7b2bd3..0116269a 100644 --- a/test/term-attributes.cpp +++ b/test/term-attributes.cpp @@ -26,9 +26,6 @@ class AttribDlg : public FDialog AttribDlg& operator = (const AttribDlg&); // and operator '=' void adjustSize(); - protected: - friend class AttribDemo; - public: explicit AttribDlg (FWidget* = 0); // constructor ~AttribDlg(); // destructor