- get rid of NUM_PRIMES

Wed, 06 Aug 2014 17:09:13 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 06 Aug 2014 17:09:13 +0300
changeset 862
a9aced38b8ba
parent 861
83426c5fa732
child 863
238082c94304

- get rid of NUM_PRIMES

src/miscallenous.cc file | annotate | diff | comparison | revisions
src/miscallenous.h file | annotate | diff | comparison | revisions
--- a/src/miscallenous.cc	Wed Aug 06 16:18:24 2014 +0300
+++ b/src/miscallenous.cc	Wed Aug 06 17:09:13 2014 +0300
@@ -27,7 +27,7 @@
 #include "ui_rotpoint.h"
 
 // Prime number table.
-const int PrimeNumbers[NUM_PRIMES] =
+static const int PrimeNumbers[] =
 {
 	2,    3,    5,    7,    11,   13,   17,   19,   23,   29,
 	31,   37,   41,   43,   47,   53,   59,   61,   67,   71,
--- a/src/miscallenous.h	Wed Aug 06 16:18:24 2014 +0300
+++ b/src/miscallenous.h	Wed Aug 06 17:09:13 2014 +0300
@@ -23,15 +23,10 @@
 #include "main.h"
 #include "basics.h"
 
-#define NUM_PRIMES 500
-
 class LDDocument;
 class QColor;
 class QAction;
 
-// Prime numbers
-extern const int PrimeNumbers[NUM_PRIMES];
-
 // Simplifies the given fraction.
 void Simplify (int& numer, int& denom);
 

mercurial