mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0027080: Coding - eliminate CLang compiler warning on OS X: unused parameter (in .mm files)
This commit is contained in:
parent
db81f678bc
commit
5ef127d0f1
@ -48,7 +48,7 @@
|
||||
|
||||
- (void )drawRect: (NSRect )theRect
|
||||
{
|
||||
|
||||
(void )theRect;
|
||||
NSRect aBounds = NSMakeRect (0.0, 0.0, myImage.size.width, myImage.size.height);
|
||||
|
||||
[myImage drawInRect: aBounds
|
||||
@ -511,7 +511,8 @@ void Draw_Window::SetColor (const Standard_Integer& theColor)
|
||||
//=======================================================================
|
||||
void Draw_Window::SetMode (const Standard_Integer& theMode)
|
||||
{
|
||||
//
|
||||
// unsupported
|
||||
(void )theMode;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -539,8 +540,11 @@ Standard_Boolean Draw_Window::Save (Standard_CString theFileName) const
|
||||
NSBitmapImageFileType aFileType = (NSBitmapImageFileType )[[aFileTypeDict valueForKey: aFileExtension] intValue];
|
||||
NSBitmapImageRep* anImageRep = [NSBitmapImageRep imageRepWithData: [myImageBuffer TIFFRepresentation]];
|
||||
|
||||
NSDictionary* anImgProps = [NSDictionary dictionaryWithObject: [NSNumber numberWithFloat: 0.8]
|
||||
forKey: NSImageCompressionFactor];
|
||||
|
||||
NSData* aData = [anImageRep representationUsingType: aFileType
|
||||
properties: nil];
|
||||
properties: anImgProps];
|
||||
|
||||
Standard_Boolean isSuccess = [aData writeToFile: aFileName
|
||||
atomically: NO];
|
||||
|
@ -66,6 +66,7 @@ OpenGl_Window::OpenGl_Window (const Handle(OpenGl_GraphicDriver)& theDriver,
|
||||
#endif
|
||||
mySwapInterval (theCaps->swapInterval)
|
||||
{
|
||||
(void )theDriver;
|
||||
myPlatformWindow->Size (myWidth, myHeight);
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
@ -105,6 +105,7 @@ TCollection_AsciiString FindViewId (const NSWindow* theWindow)
|
||||
|
||||
- (void )windowWillClose: (NSNotification* )theNotification
|
||||
{
|
||||
(void )theNotification;
|
||||
TCollection_AsciiString aViewId = "";
|
||||
if (ViewerTest_myViews.IsBound2 (ViewerTest::CurrentView()))
|
||||
{
|
||||
@ -196,6 +197,7 @@ static void getMouseCoords (NSView* theView,
|
||||
// =======================================================================
|
||||
- (void )drawRect: (NSRect )theDirtyRect
|
||||
{
|
||||
(void )theDirtyRect;
|
||||
VT_ProcessExpose();
|
||||
}
|
||||
|
||||
@ -269,6 +271,7 @@ static void getMouseCoords (NSView* theView,
|
||||
// =======================================================================
|
||||
- (void )rightMouseUp: (NSEvent* )theEvent
|
||||
{
|
||||
(void )theEvent;
|
||||
VT_ProcessButton3Release();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user