Browse Source

fix deprecated

Marino Faggiana 6 years ago
parent
commit
57d280b9ce

+ 2 - 2
iOSClient/Library/VFR Pdf Reader/Sources/CGPDFDocument.m

@@ -64,7 +64,7 @@ CGPDFDocumentRef CGPDFDocumentCreateUsingUrl(CFURLRef theURL, NSString *password
 
 				if (CGPDFDocumentIsUnlocked(thePDFDocRef) == FALSE) // Cleanup unlock failure
 				{
-					CGPDFDocumentRelease(thePDFDocRef), thePDFDocRef = NULL;
+                    (void)(CGPDFDocumentRelease(thePDFDocRef)), thePDFDocRef = NULL;
 				}
 			}
 		}
@@ -118,7 +118,7 @@ CGPDFDocumentRef CGPDFDocumentCreateUsingData(CGDataProviderRef dataProvider, NS
 
 				if (CGPDFDocumentIsUnlocked(thePDFDocRef) == FALSE) // Cleanup unlock failure
 				{
-					CGPDFDocumentRelease(thePDFDocRef), thePDFDocRef = NULL;
+                    (void)(CGPDFDocumentRelease(thePDFDocRef)), thePDFDocRef = NULL;
 				}
 			}
 		}

+ 3 - 3
iOSClient/Library/VFR Pdf Reader/Sources/ReaderContentPage.m

@@ -481,7 +481,7 @@
 			}
 			else // Error out with a diagnostic
 			{
-				CGPDFDocumentRelease(_PDFDocRef), _PDFDocRef = NULL;
+                (void)(CGPDFDocumentRelease(_PDFDocRef)), _PDFDocRef = NULL;
 
 				NSAssert(NO, @"CGPDFPageRef == NULL");
 			}
@@ -514,9 +514,9 @@
 
 - (void)dealloc
 {
-	CGPDFPageRelease(_PDFPageRef), _PDFPageRef = NULL;
+    (void)(CGPDFPageRelease(_PDFPageRef)), _PDFPageRef = NULL;
 
-	CGPDFDocumentRelease(_PDFDocRef), _PDFDocRef = NULL;
+    (void)(CGPDFDocumentRelease(_PDFDocRef)), _PDFDocRef = NULL;
 }
 
 #if (READER_DISABLE_RETINA == TRUE) // Option