[dasher] Add newline at end of file



commit 7164b2764392e3d30e3bb31bed0bae2eaf8730e1
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Fri Jul 22 10:30:59 2011 +0100

    Add newline at end of file

 Src/DasherCore/AbstractXMLParser.h  |    2 +-
 Src/DasherCore/ScreenGameModule.cpp |    8 ++++----
 Src/DasherCore/ScreenGameModule.h   |    2 +-
 Src/DasherCore/XMLUtil.cpp          |   13 +++++--------
 4 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/Src/DasherCore/AbstractXMLParser.h b/Src/DasherCore/AbstractXMLParser.h
index 6f64fa1..a02d0b4 100644
--- a/Src/DasherCore/AbstractXMLParser.h
+++ b/Src/DasherCore/AbstractXMLParser.h
@@ -53,4 +53,4 @@ private:
   static void XML_CharacterData(void *userData, const XML_Char * s, int len);
 };
 
-#endif
\ No newline at end of file
+#endif
diff --git a/Src/DasherCore/ScreenGameModule.cpp b/Src/DasherCore/ScreenGameModule.cpp
index 056eb7f..b4bc3cd 100644
--- a/Src/DasherCore/ScreenGameModule.cpp
+++ b/Src/DasherCore/ScreenGameModule.cpp
@@ -96,9 +96,9 @@ void CScreenGameModule::DrawText(CDasherView *pView) {
   screenint targetStart(x); //x coord at which to render target label
   //total area we will render text over, i.e. need to blank out:
   pair<screenint,screenint> rectDims(pScreen->TextSize(m_pLabTarget, uFontSize));
-                                          
+
   rectDims.second=max(rectDims.second,entDims.second);
-  
+
   if (m_pLabWrong) {
     const pair<screenint,screenint> wrongDims(pScreen->TextSize(m_pLabWrong, uFontSize));
     targetStart+=wrongDims.first;
@@ -117,5 +117,5 @@ void CScreenGameModule::DrawText(CDasherView *pView) {
     pScreen->Polyline(p, 2, 2, 1); //mouse-line red
   }
   pScreen->DrawString(m_pLabTarget, targetStart, 0, uFontSize, 4); //text black
-  
-}
\ No newline at end of file
+
+}
diff --git a/Src/DasherCore/ScreenGameModule.h b/Src/DasherCore/ScreenGameModule.h
index ab7dc15..b6e82d3 100644
--- a/Src/DasherCore/ScreenGameModule.h
+++ b/Src/DasherCore/ScreenGameModule.h
@@ -39,4 +39,4 @@ namespace Dasher {
   };
 }
 
-#endif
\ No newline at end of file
+#endif
diff --git a/Src/DasherCore/XMLUtil.cpp b/Src/DasherCore/XMLUtil.cpp
index edc8da0..169fe29 100644
--- a/Src/DasherCore/XMLUtil.cpp
+++ b/Src/DasherCore/XMLUtil.cpp
@@ -69,7 +69,7 @@ string XMLUtil::LoadFile(const string& strFilename, unsigned int iSizeHint)
   {
 #ifdef _WIN32
     struct __stat64 buf;
-    int result;		
+    int result;
     result = _stat64(strFilename.c_str(), &buf);
     strResult.reserve((unsigned long) buf.st_size + 256);
 #else
@@ -212,7 +212,7 @@ float XMLUtil::GetElementFloat(const string& strTag, const string& strXML, bool*
       {
         if ((strElement[i] == '.') && (!bFoundDot))
           bFoundDot = true;
-        else 
+        else
           break;
       }
     }
@@ -312,10 +312,10 @@ VECTOR_NAME_VALUE_PAIR XMLUtil::GetNameValuePairs(const string& strXML, bool bSt
   {
     if ((!bInStartTag) && (strXML[i] == '<'))
     {
-      // Starting a new tag         
+      // Starting a new tag
       bInStartTag = true;
     }
-    else if (bInStartTag) 
+    else if (bInStartTag)
     {
       if (strXML[i] == '>')
       {
@@ -350,7 +350,7 @@ VECTOR_NAME_VALUE_PAIR XMLUtil::GetNameValuePairs(const string& strXML, bool bSt
         strValue        = "";
       }
       else
-        strName += strXML[i];           
+        strName += strXML[i];
     }
 
     i++;
@@ -358,6 +358,3 @@ VECTOR_NAME_VALUE_PAIR XMLUtil::GetNameValuePairs(const string& strXML, bool bSt
 
   return vResult;
 }
-
-
-



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