Skip to content

Commit

Permalink
corrected some style errors found by review.
Browse files Browse the repository at this point in the history
  • Loading branch information
viercc committed Mar 28, 2014
1 parent 0a5d6e1 commit 1ab8060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/core/include/opencv2/core/persistence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ void write( FileStorage& fs, const String& name, const std::vector<_Tp>& vec )
write(fs, vec);
}


static inline
void read(const FileNode& node, bool& value, bool default_value)
{
Expand Down
3 changes: 1 addition & 2 deletions modules/core/src/persistence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5486,15 +5486,14 @@ internal::WriteStructContext::WriteStructContext(FileStorage& _fs,
{
cvStartWriteStruct(**fs, !name.empty() ? name.c_str() : 0, flags,
!typeName.empty() ? typeName.c_str() : 0);
fs->elname = String();
if ((flags & FileNode::TYPE_MASK) == FileNode::SEQ)
{
fs->elname = String();
fs->state = FileStorage::VALUE_EXPECTED;
fs->structs.push_back('[');
}
else
{
fs->elname = String();
fs->state = FileStorage::NAME_EXPECTED + FileStorage::INSIDE_MAP;
fs->structs.push_back('{');
}
Expand Down

0 comments on commit 1ab8060

Please sign in to comment.