Commit a1f6b3dc authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58912 954022d7-b5bf-4e40-9824-e11837661b57
parent cbdb1cd5
......@@ -47,7 +47,7 @@ namespace PPTX
{
DWORD RGB = 0;
CString str = val.get();
if(str != "")
if (!str.empty())
{
switch((CHAR)str[0])
{
......
......@@ -95,6 +95,13 @@ namespace NSCommon
else
this->m_pPointer = new Type( (const Type&)*(oOther.m_pPointer) );
}
nullable(const XmlUtils::CXmlNode& oNode)
{
if (oNode.IsValid())
this->m_pPointer = new Type(oNode);
else
this->m_pPointer = NULL;
}
nullable<Type>& operator=(XmlUtils::CXmlNode& oNode)
{
......
......@@ -319,7 +319,7 @@ namespace XmlUtils
return (IsValid() ? m_pBase->m_sName : L"");
}
bool CXmlNode::IsValid()
bool CXmlNode::IsValid() const
{
return (NULL != m_pBase);
}
......
......@@ -64,7 +64,7 @@ namespace XmlUtils
// wchar_t* pRealloc = (wchar_t*)realloc(m_pData, m_lSize * sizeof(wchar_t));
// if (NULL != pRealloc)
// {
// //
// // ������� ��������
// m_pData = pRealloc;
// m_pDataCur = m_pData + m_lSizeCur;
// }
......@@ -388,8 +388,8 @@ namespace XmlUtils
}
inline BOOL ReadNextSiblingNode(int nDepth)
{
// ,
// .
// ����� �������������� ���� ������� ���� ���������,
// ������ �� ������������ ����.
if ( !IsValid() )
return FALSE;
......@@ -405,7 +405,7 @@ namespace XmlUtils
eNodeType = (XmlNodeType)nTempType;
nCurDepth = nTempDepth;
//
// � ������������ ���� ������� ����� �� ��� � ��������������
if (nCurDepth < nDepth)
break;
......@@ -430,7 +430,7 @@ namespace XmlUtils
XmlNodeType eNodeType = XmlNodeType_None;
int nCurDepth = -1;
//
// � ������������ ���� ������� ����� �� ��� � ��������������
while( TRUE )
{
if ( 1 != xmlTextReaderRead(reader) )
......@@ -596,7 +596,7 @@ namespace XmlUtils
XmlNodeType eNodeType = XmlNodeType_None;
int nCurDepth = -1;
//
// � ������������ ���� ������� ����� �� ��� � ��������������
while( TRUE )
{
if ( 1 != xmlTextReaderRead(reader) )
......@@ -782,7 +782,7 @@ namespace XmlUtils
}
bool FromXmlString(const std::wstring& sString);
bool IsValid();
bool IsValid() const;
void Clear();
CString GetName();
CString GetText();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment