--- build/win32/libwpd.vcproj +++ build/win32/libwpd.vcproj @@ -42,7 +42,7 @@ Optimization="0" PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/libwpd.pch" AssemblerListingLocation=".\Debug/" @@ -115,7 +115,7 @@ InlineFunctionExpansion="1" PreprocessorDefinitions="NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS" StringPooling="true" - RuntimeLibrary="0" + RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/libwpd.pch" --- build/win32/libwpdstream.vcproj +++ build/win32/libwpdstream.vcproj @@ -43,7 +43,7 @@ InlineFunctionExpansion="1" PreprocessorDefinitions="NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_DEPRECATE" StringPooling="true" - RuntimeLibrary="0" + RuntimeLibrary="2" EnableFunctionLevelLinking="true" PrecompiledHeaderFile=".\Release/libwpdstream.pch" AssemblerListingLocation=".\Release/" @@ -114,7 +114,7 @@ Optimization="0" PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_LIB;_CRT_SECURE_NO_DEPRECATE" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" PrecompiledHeaderFile=".\Debug/libwpdstream.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" diff --git a/build/win32/wpd2html.vcproj b/build/win32/wpd2html.vcproj index a41eef2..bdc44cc 100644 --- build/win32/wpd2html.vcproj +++ build/win32/wpd2html.vcproj @@ -46,7 +46,7 @@ Optimization="4" AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="NDEBUG;WIN32;_CONSOLE" - RuntimeLibrary="0" + RuntimeLibrary="2" PrecompiledHeaderFile=".\Release/wpd2html.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" @@ -134,7 +134,7 @@ AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_CONSOLE" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" PrecompiledHeaderFile=".\Debug/wpd2html.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" diff --git a/build/win32/wpd2raw.vcproj b/build/win32/wpd2raw.vcproj index a41318a..9a057e5 100644 --- build/win32/wpd2raw.vcproj +++ build/win32/wpd2raw.vcproj @@ -47,7 +47,7 @@ Optimization="4" AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="NDEBUG;WIN32;_CONSOLE" - RuntimeLibrary="0" + RuntimeLibrary="2" PrecompiledHeaderFile=".\Release/wpd2raw.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" @@ -136,7 +136,7 @@ AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_CONSOLE" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" PrecompiledHeaderFile=".\Debug/wpd2raw.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" diff --git a/build/win32/wpd2text.vcproj b/build/win32/wpd2text.vcproj index 8c02ed1..f4ae836 100644 --- build/win32/wpd2text.vcproj +++ build/win32/wpd2text.vcproj @@ -47,7 +47,7 @@ AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_CONSOLE" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" PrecompiledHeaderFile=".\Debug/wpd2text.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" @@ -136,7 +136,7 @@ Optimization="4" AdditionalIncludeDirectories="..\..\src\lib" PreprocessorDefinitions="NDEBUG;WIN32;_CONSOLE" - RuntimeLibrary="0" + RuntimeLibrary="2" PrecompiledHeaderFile=".\Release/wpd2text.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" --- src/lib/WP6BoxGroup.cpp +++ src/lib/WP6BoxGroup.cpp @@ -304,8 +304,8 @@ void WP6BoxGroup::parse(WP6Listener *listener) if (!m_nativeHeight && gbsPacket) m_nativeHeight = gbsPacket->getNativeHeight(); - std::vector graphicsDataIds; - std::vector::iterator gdiIter; + std::vector graphicsDataIds; + std::vector::iterator gdiIter; WP6SubDocument *subDocument = 0; // Get the box content @@ -389,7 +389,7 @@ void WP6BoxGroup::parse(WP6Listener *listener) if (tmpContentType == 0x03) { for (gdiIter = graphicsDataIds.begin(); gdiIter != graphicsDataIds.end(); gdiIter++) - listener->insertGraphicsData((*gdiIter)); + listener->insertGraphicsData(((uint16_t)*gdiIter)); } if ((tmpContentType == 0x01) && (subDocument)) { --- src/lib/WP6BoxGroup.h +++ src/lib/WP6BoxGroup.h @@ -28,7 +28,6 @@ #define WP6BOXGROUP_H #include "WP6VariableLengthGroup.h" -#include #include "libwpd_internal.h" class WPXInputStream; --- src/lib/WP6GraphicsFilenamePacket.cpp +++ src/lib/WP6GraphicsFilenamePacket.cpp @@ -50,4 +50,9 @@ void WP6GraphicsFilenamePacket::_readContents(WPXInputStream *input, WPXEncrypti m_childIds.push_back(readU16(input, encryption)); } +const std::vector WP6GraphicsFilenamePacket::getChildIds() const +{ + return m_childIds; +} + /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */ --- src/lib/WP6GraphicsFilenamePacket.h +++ src/lib/WP6GraphicsFilenamePacket.h @@ -39,16 +39,12 @@ public: ~WP6GraphicsFilenamePacket(); void _readContents(WPXInputStream *input, WPXEncryption *encryption); void parse(WP6Listener * /*listener */) const {} - const std::vector &getChildIds() const - { - return m_childIds; - } - + const std::vector getChildIds() const; private: WP6GraphicsFilenamePacket(const WP6GraphicsFilenamePacket &); WP6GraphicsFilenamePacket &operator=(const WP6GraphicsFilenamePacket &); - std::vector m_childIds; + std::vector m_childIds; const uint8_t m_flags; };