Merge pull request #14292 from alalek:issue_14291

* macosx: fix C++11 build

backporting commit c3cf35ab63

* macosx: eliminate build warning
pull/14297/head
Alexander Alekhin 6 years ago committed by GitHub
parent c8056b3e27
commit 7621b91769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/highgui/src/window_cocoa.mm
  2. 2
      modules/videoio/src/cap_avfoundation_mac.mm

@ -266,7 +266,7 @@ CV_IMPL void cvResizeWindow( const char* name, int width, int height)
CVWindow *window = cvGetWindow(name);
if(window && ![window autosize]) {
height += [window contentView].sliderHeight;
NSSize size = { width, height };
NSSize size = { (CGFloat)width, (CGFloat)height };
[window setContentSize:size];
}
[localpool drain];

@ -181,7 +181,7 @@ class CvVideoWriter_AVFoundation : public CvVideoWriter {
double fps, CvSize frame_size,
int is_color=1);
~CvVideoWriter_AVFoundation();
bool writeFrame(const IplImage* image);
bool writeFrame(const IplImage* image) CV_OVERRIDE;
int getCaptureDomain() const CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
private:
IplImage* argbimage;

Loading…
Cancel
Save