Commit 1ab8060b authored by Koji Miyazato's avatar Koji Miyazato

corrected some style errors found by review.

parent 0a5d6e10
...@@ -701,6 +701,7 @@ void write( FileStorage& fs, const String& name, const std::vector<_Tp>& vec ) ...@@ -701,6 +701,7 @@ void write( FileStorage& fs, const String& name, const std::vector<_Tp>& vec )
write(fs, vec); write(fs, vec);
} }
static inline static inline
void read(const FileNode& node, bool& value, bool default_value) void read(const FileNode& node, bool& value, bool default_value)
{ {
......
...@@ -5486,15 +5486,14 @@ internal::WriteStructContext::WriteStructContext(FileStorage& _fs, ...@@ -5486,15 +5486,14 @@ internal::WriteStructContext::WriteStructContext(FileStorage& _fs,
{ {
cvStartWriteStruct(**fs, !name.empty() ? name.c_str() : 0, flags, cvStartWriteStruct(**fs, !name.empty() ? name.c_str() : 0, flags,
!typeName.empty() ? typeName.c_str() : 0); !typeName.empty() ? typeName.c_str() : 0);
fs->elname = String();
if ((flags & FileNode::TYPE_MASK) == FileNode::SEQ) if ((flags & FileNode::TYPE_MASK) == FileNode::SEQ)
{ {
fs->elname = String();
fs->state = FileStorage::VALUE_EXPECTED; fs->state = FileStorage::VALUE_EXPECTED;
fs->structs.push_back('['); fs->structs.push_back('[');
} }
else else
{ {
fs->elname = String();
fs->state = FileStorage::NAME_EXPECTED + FileStorage::INSIDE_MAP; fs->state = FileStorage::NAME_EXPECTED + FileStorage::INSIDE_MAP;
fs->structs.push_back('{'); fs->structs.push_back('{');
} }
......
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