mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix some rough edges
This commit is contained in:
parent
835e36d6ae
commit
62f659b901
|
@ -17,12 +17,6 @@ if(NOT MSVC)
|
|||
option(COVERAGE "Generate coverage data using gcov" OFF)
|
||||
endif()
|
||||
|
||||
if(STATIC)
|
||||
set(ZLIB_LIBRARY libz.a)
|
||||
set(CRYPTOPP_LIBRARY libcryptopp.a)
|
||||
set(EXPAT_LIBRARY libexpat.a)
|
||||
endif()
|
||||
|
||||
# Add components according to selected options
|
||||
if(SAMPLES)
|
||||
add_subdirectory(samples)
|
||||
|
|
|
@ -39,15 +39,9 @@ struct rich_text_run
|
|||
std::string first;
|
||||
optional<font> second;
|
||||
|
||||
bool operator==(const rich_text_run &other) const
|
||||
{
|
||||
return first == other.first && second == other.second;
|
||||
}
|
||||
bool operator==(const rich_text_run &other) const;
|
||||
|
||||
bool operator!=(const rich_text_run &other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
bool operator!=(const rich_text_run &other) const;
|
||||
};
|
||||
|
||||
} // namespace xlnt
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.2)
|
||||
project(xlnt VERSION 0.9.4)
|
||||
project(xlnt VERSION 0.9.5)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
|
|
@ -25,4 +25,14 @@
|
|||
|
||||
namespace xlnt {
|
||||
|
||||
bool rich_text_run::operator==(const rich_text_run &other) const
|
||||
{
|
||||
return first == other.first && second == other.second;
|
||||
}
|
||||
|
||||
bool rich_text_run::operator!=(const rich_text_run &other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
} // namespace xlnt
|
||||
|
|
Loading…
Reference in New Issue
Block a user