1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

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
+2 -1
View File
@@ -180,7 +180,8 @@ protected:
fs.writeObj("test_graph",graph);
CvGraph* graph2 = (CvGraph*)cvClone(graph);
string content = fs.release();
string content;
fs.release(content);
if(!fs.open(mem ? content : filename, FileStorage::READ + (mem ? FileStorage::MEMORY : 0)))
{