C++ port: Make sure #indef/#define/#endif's and copyright information on all header...
[zxing.git] / cpp / core / src / zxing / oned / ITFReader.h
index 759d841..ba3054d 100644 (file)
@@ -1,8 +1,10 @@
+#ifndef __ITF_READER_H__
+#define __ITF_READER_H__
+
 /*
  *  ITFReader.h
  *  ZXing
  *
- *  Created by Lukasz Warchol on 10-01-26.
  *  Copyright 2010 ZXing authors All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,7 +29,7 @@ namespace zxing {
                class ITFReader : public OneDReader {
                        
                private:
-                       static const int MAX_AVG_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.42f);
+                       static const unsigned int MAX_AVG_VARIANCE = (unsigned int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.42f);
                        static const int MAX_INDIVIDUAL_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.8f);
                        
                        // Stores the actual narrow line width of the image being decoded.
@@ -51,3 +53,4 @@ namespace zxing {
        }
 }
 
+#endif