mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
declare/define static const member correctly
This commit is contained in:
parent
7ac3d8a612
commit
d353bbf42c
|
@ -98,7 +98,7 @@ namespace detail {
|
||||||
|
|
||||||
struct crypto_helper
|
struct crypto_helper
|
||||||
{
|
{
|
||||||
static const std::size_t segment_length = 4096;
|
static const std::size_t segment_length;
|
||||||
|
|
||||||
enum class cipher_algorithm
|
enum class cipher_algorithm
|
||||||
{
|
{
|
||||||
|
@ -715,6 +715,8 @@ struct crypto_helper
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const std::size_t crypto_helper::segment_length = 4096;
|
||||||
|
|
||||||
void xlsx_consumer::read(std::istream &source, const std::string &password)
|
void xlsx_consumer::read(std::istream &source, const std::string &password)
|
||||||
{
|
{
|
||||||
std::vector<std::uint8_t> data((std::istreambuf_iterator<char>(source)),
|
std::vector<std::uint8_t> data((std::istreambuf_iterator<char>(source)),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user