[dasher] whitespace
- From: Patrick Welche <pwelche src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dasher] whitespace
- Date: Fri, 7 Aug 2009 21:02:02 +0000 (UTC)
commit e4d9b4c35acc1a465506b38bd2deca3db3e51d8f
Author: Patrick Welche <prlw1 cam ac uk>
Date: Fri Aug 7 15:07:39 2009 +0200
whitespace
Src/DasherCore/AlphabetManagerFactory.h | 2 +-
Src/DasherCore/NodeCreationManager.cpp | 2 +-
Src/DasherCore/Trainer.cpp | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/Src/DasherCore/AlphabetManagerFactory.h b/Src/DasherCore/AlphabetManagerFactory.h
index f9002be..60a65d0 100644
--- a/Src/DasherCore/AlphabetManagerFactory.h
+++ b/Src/DasherCore/AlphabetManagerFactory.h
@@ -63,7 +63,7 @@ namespace Dasher {
CAlphabet *m_pAlphabet; // pointer to the alphabet
CAlphabet *m_pCHAlphabet; // pointer to the Mandarin alphabet
CTrainer *m_pTrainer;
-
+
int m_iConversionID;
};
/// @}
diff --git a/Src/DasherCore/NodeCreationManager.cpp b/Src/DasherCore/NodeCreationManager.cpp
index 604902b..f326277 100644
--- a/Src/DasherCore/NodeCreationManager.cpp
+++ b/Src/DasherCore/NodeCreationManager.cpp
@@ -26,7 +26,7 @@ CNodeCreationManager::CNodeCreationManager(Dasher::CDasherInterfaceBase *pInterf
CTrainer *pTrainer = m_pAlphabetManagerFactory->GetTrainer();
pTrainer->Train(GetStringParameter(SP_USER_LOC), GetStringParameter(SP_SYSTEM_LOC));
-
+
delete pTrainer;
int iConversionID(m_pAlphabetManagerFactory->GetConversionID());
diff --git a/Src/DasherCore/Trainer.cpp b/Src/DasherCore/Trainer.cpp
index a2505e2..044b6ea 100644
--- a/Src/DasherCore/Trainer.cpp
+++ b/Src/DasherCore/Trainer.cpp
@@ -26,11 +26,11 @@ CTrainer::CTrainer(CLanguageModel *pLanguageModel, CAlphabet *pAlphabet)
: CTrainingHelper(pAlphabet), m_pLanguageModel(pLanguageModel) {
}
-void CTrainer::Train(const std::string &strUserLoc,
+void CTrainer::Train(const std::string &strUserLoc,
const std::string &strSystemLoc) {
-
+
std::string strTrainingFile = m_pAlphabet->GetTrainingFile();
-
+
if (strTrainingFile.empty()) {
#ifdef DEBUG
std::cerr << "Trying to load empty training file (location)" << std::endl;
@@ -166,4 +166,4 @@ void CMandarinTrainer::Train(const std::string &strUserLoc, const std::string &s
}
//std::cout<<"The Length of Training file is "<<numberofchar<<" bytes/py characters"<<std::endl;
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]