diff --git a/ASCOfficeDocFile/DocDocxConverter/FormattedDiskPageCHPX.cpp b/ASCOfficeDocFile/DocDocxConverter/FormattedDiskPageCHPX.cpp index ec1cf63ddc6..6666667e6a6 100644 --- a/ASCOfficeDocFile/DocDocxConverter/FormattedDiskPageCHPX.cpp +++ b/ASCOfficeDocFile/DocDocxConverter/FormattedDiskPageCHPX.cpp @@ -53,7 +53,7 @@ namespace DocFileFormat /*========================================================================================================*/ FormattedDiskPageCHPX::FormattedDiskPageCHPX( POLE::Stream* wordStream, int offset, int nWordVersion ): - FormattedDiskPage(), rgb(NULL), grpchpxSize(NULL), grpchpx(NULL) + FormattedDiskPage(), rgb(NULL), grpchpxSize(0), grpchpx(NULL) { Type = Character; WordStream = wordStream; diff --git a/ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp b/ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp index 34af4c4d0ea..faada2d1c52 100644 --- a/ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp +++ b/ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp @@ -599,7 +599,7 @@ namespace BinXlsxRW{ //как в CsvReader - подозрительный код WCHAR *pEndPtr; wcstod(val.c_str(), &pEndPtr); - if (NULL != *pEndPtr) + if (0 != *pEndPtr) { // Не число aSharedStrings.push_back(val); diff --git a/ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp b/ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp index 04f65848a44..e8442c9a0aa 100644 --- a/ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp +++ b/ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp @@ -53,7 +53,7 @@ CPPTFileReader::CPPTFileReader(POLE::Storage *pStorage, std::wstring strTemp): m_pStorage(pStorage), m_bIsPPTFile(false), m_nPresentationCodePage(1250), - m_pDocumentStream(NULL), m_pPictureStream(NULL), m_pDocumentSummaryStream(NULL), m_pEncryptedSummaryStream(NULL), + m_pDocumentStream(), m_pPictureStream(), m_pDocumentSummaryStream(), m_pEncryptedSummaryStream(), m_strTmpDirectory(strTemp), m_oDocumentInfo() { diff --git a/ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.cpp b/ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.cpp index 865cb640870..9179fd3cfa0 100644 --- a/ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.cpp +++ b/ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.cpp @@ -50,7 +50,7 @@ CBaseShapePtr CBaseShape::CreateByType(NSBaseShape::ClassType ClassType, int Sha return CPPTShape::CreateByType((PPTShapes::ShapeType)ShapeType); } - return NULL; + return CBaseShapePtr(); } bool CBaseShape::SetType(NSBaseShape::ClassType ClassType, int ShapeType) diff --git a/ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp b/ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp index 1bab9e66208..32ea589c7cf 100644 --- a/ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp +++ b/ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp @@ -194,7 +194,7 @@ namespace PPTX } std::wstring ChartRec::toXML() const { - if (!id_data.is_init() || NULL == m_bData) + if (!id_data.is_init() || false == m_bData) return L""; std::wstring strData = L"ToString() + L"\"/>"; @@ -203,7 +203,7 @@ xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" } void ChartRec::toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const { - if (!id_data.is_init() || NULL == m_bData) + if (!id_data.is_init() || false == m_bData) return; std::wstring strData = L"= m_nPathsCount) - return NULL; + return 0; return m_pFlags[nPathIndex]; } diff --git a/XlsxSerializerCom/Reader/CSVReader.cpp b/XlsxSerializerCom/Reader/CSVReader.cpp index 6bb5fab0893..96425598607 100644 --- a/XlsxSerializerCom/Reader/CSVReader.cpp +++ b/XlsxSerializerCom/Reader/CSVReader.cpp @@ -199,7 +199,7 @@ namespace CSVReader WCHAR *pEndPtr; double dValue = wcstod(sText.c_str(), &pEndPtr); - if (NULL != *pEndPtr) + if (0 != *pEndPtr) { // Не число pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeInlineStr);