Remove namespaces from header files
[novacoin.git] / src / kernel_worker.h
index 25e731a..93ee62c 100644 (file)
@@ -1,10 +1,8 @@
-#ifndef BITCOIN_HERNELWORKER_H
-#define BITCOIN_HERNELWORKER_H
+#ifndef NOVACOIN_KERNELWORKER_H
+#define NOVACOIN_KERNELWORKER_H
 
 #include <vector>
 
-using namespace std;
-
 class KernelWorker
 {
 public:
@@ -12,16 +10,16 @@ public:
     { }
     KernelWorker(unsigned char *kernel, uint32_t nBits, uint32_t nInputTxTime, int64_t nValueIn, uint32_t nIntervalBegin, uint32_t nIntervalEnd);
     void Do();
-    vector<pair<uint256,uint32_t> >& GetSolutions();
+    std::vector<std::pair<uint256,uint32_t> >& GetSolutions();
 
 private:
     // One way hashing.
     void Do_generic();
 
     // Kernel solutions.
-    vector<pair<uint256,uint32_t> > solutions;
+    std::vector<std::pair<uint256,uint32_t> > solutions;
 
-    // Kernel metadaya
+    // Kernel metadata.
     uint8_t *kernel;
     uint32_t nBits;
     uint32_t nInputTxTime;
@@ -33,6 +31,6 @@ private:
 };
 
 // Scan given kernel for solutions
-bool ScanKernelBackward(unsigned char *kernel, uint32_t nBits, uint32_t nInputTxTime, int64_t nValueIn, pair<uint32_t, uint32_t> &SearchInterval, pair<uint256, uint32_t> &solution);
+bool ScanKernelBackward(unsigned char *kernel, uint32_t nBits, uint32_t nInputTxTime, int64_t nValueIn, std::pair<uint32_t, uint32_t> &SearchInterval, std::pair<uint256, uint32_t> &solution);
 
-#endif
+#endif // NOVACOIN_KERNELWORKER_H
\ No newline at end of file