summaryrefslogtreecommitdiff
path: root/utils/HtmlFonts.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-11-13 23:35:53 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-11-13 23:35:53 +0100
commit3a6e5ed5e28b6113696a7ae60b0b85d7097eb731 (patch)
tree0fbce3e29793ccb280072c6029959286b5d5900c /utils/HtmlFonts.h
parent0dcc2d711810dd64aa8d8721ce53a6b72e12c47c (diff)
Remove >= 0 checks for unsigned variables
Diffstat (limited to 'utils/HtmlFonts.h')
-rw-r--r--utils/HtmlFonts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/HtmlFonts.h b/utils/HtmlFonts.h
index 22368b28..7993c78e 100644
--- a/utils/HtmlFonts.h
+++ b/utils/HtmlFonts.h
@@ -18,7 +18,7 @@
// under GPL version 2 or later
//
// Copyright (C) 2010 OSSD CDAC Mumbai by Leena Chourey (leenac@cdacmumbai.in) and Onkar Potdar (onkar@cdacmumbai.in)
-// Copyright (C) 2010 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2010, 2012 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2011 Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk>
// Copyright (C) 2011 Joshua Richardson <jric@chegg.com>
// Copyright (C) 2012 Igor Slepchin <igor.slepchin@gmail.com>
@@ -40,7 +40,7 @@ class HtmlFontColor{
unsigned int r;
unsigned int g;
unsigned int b;
- GBool Ok(unsigned int xcol){ return ((xcol<=255)&&(xcol>=0));}
+ GBool Ok(unsigned int xcol){ return xcol<=255;}
GooString *convtoX(unsigned int xcol) const;
public:
HtmlFontColor():r(0),g(0),b(0){}