Made Filestorage able to not own its CvFileStorage instance.

This allows to get rid of the last remaining Ptr<T>::addref calls.
This commit is contained in:
Roman Donchenko
2013-08-14 12:44:58 +04:00
parent 3e189a2b41
commit a50d75d362
4 changed files with 7 additions and 7 deletions

View File

@@ -1353,8 +1353,7 @@ public:
{
if(ptr && _fs)
{
FileStorage fs(_fs);
fs.fs.addref();
FileStorage fs(_fs, false);
((const _ClsName*)ptr)->write(fs, String(name));
}
}