replaced "string FileStorage::release()" with 2 methods to preserve backward compatibility.

This commit is contained in:
Vadim Pisarevsky
2012-05-30 11:29:22 +00:00
parent 48c3cfdfd0
commit 74882fe188
3 changed files with 18 additions and 9 deletions

View File

@@ -3976,7 +3976,9 @@ public:
//! returns true if the object is associated with currently opened file.
CV_WRAP virtual bool isOpened() const;
//! closes the file and releases all the memory buffers
CV_WRAP virtual string release();
CV_WRAP virtual void release();
//! closes the file, releases all the memory buffers and returns the text string
CV_WRAP_AS(releaseAndGetString) virtual void release(CV_OUT string& buf);
//! returns the first element of the top-level mapping
CV_WRAP FileNode getFirstTopLevelNode() const;