[dasher] const sprinkle, and comment out a couple of unused variables.



commit a6ea6260e1d6d35692d850abb668a09a38cd440d
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Wed Nov 25 18:09:24 2009 +0000

    const sprinkle, and comment out a couple of unused variables.

 Src/DasherCore/DasherModel.cpp            |    2 +-
 Src/DasherCore/PinYinConversionHelper.cpp |    2 +-
 Src/DasherCore/Trainer.cpp                |    5 ++---
 3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/Src/DasherCore/DasherModel.cpp b/Src/DasherCore/DasherModel.cpp
index 1fb0de9..3102659 100644
--- a/Src/DasherCore/DasherModel.cpp
+++ b/Src/DasherCore/DasherModel.cpp
@@ -398,7 +398,7 @@ void CDasherModel::Get_new_root_coords(dasherint X, dasherint Y, dasherint &r1,
   // new root{min,max} r1,r2, old root{min,max} R1,R2
   const dasherint R1 = m_Rootmin;
   const dasherint R2 = m_Rootmax;
-  const dasherint Y1 = 0;
+  // const dasherint Y1 = 0;
   dasherint Y2(GetLongParameter(LP_MAX_Y));
   dasherint iOX(GetLongParameter(LP_OX));
   dasherint iOY(GetLongParameter(LP_OY));
diff --git a/Src/DasherCore/PinYinConversionHelper.cpp b/Src/DasherCore/PinYinConversionHelper.cpp
index 205163c..a605bb3 100644
--- a/Src/DasherCore/PinYinConversionHelper.cpp
+++ b/Src/DasherCore/PinYinConversionHelper.cpp
@@ -135,7 +135,7 @@ void CPinYinConversionHelper::AssignSizes(SCENode **pStart, Dasher::CLanguageMod
   std::vector <symbol> Symbols;
   std::vector <symbol> SymbolStore;
 
-  CLanguageModel::Context iCurrentContext;
+  //CLanguageModel::Context iCurrentContext;
 
   //  int iNumSymbols =0;
   while(pNode){
diff --git a/Src/DasherCore/Trainer.cpp b/Src/DasherCore/Trainer.cpp
index 2839958..91a5aa9 100644
--- a/Src/DasherCore/Trainer.cpp
+++ b/Src/DasherCore/Trainer.cpp
@@ -96,9 +96,8 @@ void CMandarinTrainer::Train(const std::string &strUserLoc, const std::string &s
   unsigned numberofchar = 0;
 
 
-  size_t charsize = 1024;
-    
-  size_t trainBufferSize = 3*charsize*3;
+  const size_t charsize = 1024;
+  const size_t trainBufferSize = 3*charsize*3;
   char szBuffer[trainBufferSize];
     
   std::string strChar;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]