mirror of
https://github.com/opencv/opencv.git
synced 2026-07-28 14:53:03 +04:00
compatibility: keep Ptr<FileStorage> stubs till OpenCV 5.0
This commit is contained in:
@@ -68,6 +68,14 @@ void Algorithm::write(FileStorage& fs, const String& name) const
|
||||
fs << "}";
|
||||
}
|
||||
|
||||
#if CV_VERSION_MAJOR < 5
|
||||
void Algorithm::write(const Ptr<FileStorage>& fs, const String& name) const
|
||||
{
|
||||
CV_Assert(fs);
|
||||
write(*fs, name);
|
||||
}
|
||||
#endif
|
||||
|
||||
void Algorithm::save(const String& filename) const
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
|
||||
Reference in New Issue
Block a user