Index: src/libictranslate/ResourceManager.cpp =================================================================== diff -u -r8379c88620bc401673c4171e729f4d15a4d5354a -r321b486ce9e2b11c82cf5326832605a1150e1653 --- src/libictranslate/ResourceManager.cpp (.../ResourceManager.cpp) (revision 8379c88620bc401673c4171e729f4d15a4d5354a) +++ src/libictranslate/ResourceManager.cpp (.../ResourceManager.cpp) (revision 321b486ce9e2b11c82cf5326832605a1150e1653) @@ -157,7 +157,6 @@ m_wPointSize(0), m_pszHelpName(NULL), m_pszAuthor(NULL), - m_pszVersion(NULL), m_bRTL(false), m_uiSectionID(0), m_bUpdating(false) @@ -171,7 +170,6 @@ delete [] m_pszFontFace; delete [] m_pszHelpName; delete [] m_pszAuthor; - delete [] m_pszVersion; } void CLangData::Clear() @@ -186,8 +184,6 @@ m_pszHelpName = NULL; delete [] m_pszAuthor; m_pszAuthor = NULL; - delete [] m_pszVersion; - m_pszVersion = NULL; m_mapTranslation.clear(); } @@ -197,8 +193,7 @@ m_pszLngName(NULL), m_pszFontFace(NULL), m_pszHelpName(NULL), - m_pszAuthor(NULL), - m_pszVersion(NULL) + m_pszAuthor(NULL) { SetFilename(ld.GetFilename(true)); SetLangName(ld.GetLangName()); @@ -207,7 +202,6 @@ SetDirection(ld.GetDirection()); SetHelpName(ld.GetHelpName()); SetAuthor(ld.GetAuthor()); - SetVersion(ld.GetVersion()); } CLangData& CLangData::operator=(const CLangData& rSrc) @@ -221,7 +215,6 @@ SetDirection(rSrc.GetDirection()); SetHelpName(rSrc.GetHelpName()); SetAuthor(rSrc.GetAuthor()); - SetVersion(rSrc.GetVersion()); } return *this; @@ -238,7 +231,6 @@ const uint_t uiRTL = cfg.register_bool(_T("Info/RTL reading order"), false); const uint_t uiHelpName = cfg.register_string(_T("Info/Help name"), _T("")); const uint_t uiAuthor = cfg.register_string(_T("Info/Author"), _T("")); - const uint_t uiVersion = cfg.register_string(_T("Info/Version"), _T("")); cfg.read(pszFile); const tchar_t* psz = cfg.get_string(uiLangName); @@ -268,11 +260,6 @@ return false; SetAuthor(psz); - psz = cfg.get_string(uiVersion); - if(!psz || psz[0] == _t('\0')) - return false; - SetVersion(psz); - SetFilename(pszFile); return true; @@ -405,7 +392,6 @@ const uint_t uiRTL = cfg.register_bool(_T("Info/RTL reading order"), false); const uint_t uiHelpName = cfg.register_string(_T("Info/Help name"), _T("")); const uint_t uiAuthor = cfg.register_string(_T("Info/Author"), _T("")); - const uint_t uiVersion = cfg.register_string(_T("Info/Version"), _T("")); cfg.read(pszFile); const tchar_t* psz = cfg.get_string(uiLangName); @@ -435,11 +421,6 @@ return false; SetAuthor(psz); - psz = cfg.get_string(uiVersion); - if(!psz || psz[0] == _t('\0')) - return false; - SetVersion(psz); - m_bUpdating = bUpdateTranslation; m_uiSectionID = 0; if(!cfg.enum_properties(_t("*"), EnumAttributesCallback, this)) @@ -472,7 +453,6 @@ cfg.set_string(_T("Info/RTL reading order"), m_bRTL ? _T("1") : _T("0")); cfg.set_string(_T("Info/Help name"), m_pszHelpName); cfg.set_string(_T("Info/Author"), m_pszAuthor); - cfg.set_string(_T("Info/Version"), m_pszVersion); tstring_t strText; for(translation_map::iterator it = m_mapTranslation.begin(); it != m_mapTranslation.end(); it++) @@ -619,14 +599,6 @@ _tcscpy(m_pszAuthor, psz); } -void CLangData::SetVersion(PCTSTR psz) -{ - if (m_pszVersion) - delete [] m_pszVersion; - m_pszVersion=new TCHAR[_tcslen(psz)+1]; - _tcscpy(m_pszVersion, psz); -} - void CLangData::SetFnameData(PTSTR *ppszDst, PCTSTR pszSrc) { if (*ppszDst) Index: src/libictranslate/ResourceManager.h =================================================================== diff -u -r8379c88620bc401673c4171e729f4d15a4d5354a -r321b486ce9e2b11c82cf5326832605a1150e1653 --- src/libictranslate/ResourceManager.h (.../ResourceManager.h) (revision 8379c88620bc401673c4171e729f4d15a4d5354a) +++ src/libictranslate/ResourceManager.h (.../ResourceManager.h) (revision 321b486ce9e2b11c82cf5326832605a1150e1653) @@ -115,9 +115,6 @@ void SetAuthor(PCTSTR psz); PCTSTR GetAuthor() const { return m_pszAuthor; }; - void SetVersion(PCTSTR psz); - PCTSTR GetVersion() const { return m_pszVersion; }; - protected: void SetFnameData(PTSTR *ppszDst, PCTSTR pszSrc); static void EnumAttributesCallback(bool bGroup, const tchar_t* pszName, const tchar_t* pszValue, ptr_t pData); @@ -131,7 +128,6 @@ WORD m_wPointSize; // font point size TCHAR *m_pszHelpName; // help name (wo the directory) for this language TCHAR *m_pszAuthor; // author name - TCHAR *m_pszVersion; // version of this file bool m_bRTL; // does the language require right-to-left reading order ? // strings (for controls in dialog boxes the ID contains hi:dlg ID, lo:ctrl ID, for strings hi part is 0)