r23668 by craig - Clean up return code

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 26 21:56:04 UTC 2020


Author: craig
Date: Sun Apr 26 21:56:04 2020
New Revision: 23668

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23668
Log:
Clean up return code

Modified:
    trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp

Modified: trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23668&path=/trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp
==============================================================================
--- trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp	(original)
+++ trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp	Sun Apr 26 21:56:04 2020
@@ -10,7 +10,7 @@
 #include <cstdlib>
 
 ScLcms2ColorProfileImpl::ScLcms2ColorProfileImpl(ScColorMgmtEngine& engine, cmsHPROFILE lcmsProfile)
-                      : ScColorProfileImplBase(engine), m_profileHandle(lcmsProfile)
+	: ScColorProfileImplBase(engine), m_profileHandle(lcmsProfile)
 {
 
 }
@@ -48,12 +48,8 @@
 		return true;
 
 	cmsUInt32Number defaultIntent = cmsGetHeaderRenderingIntent(m_profileHandle);
-	if (cmsIsCLUT(m_profileHandle, defaultIntent, LCMS_USED_AS_INPUT) &&
-		cmsIsCLUT(m_profileHandle, defaultIntent, LCMS_USED_AS_OUTPUT))
-	{
-		return true;
-	}
-	return false;
+	return (cmsIsCLUT(m_profileHandle, defaultIntent, LCMS_USED_AS_INPUT) &&
+			cmsIsCLUT(m_profileHandle, defaultIntent, LCMS_USED_AS_OUTPUT));
 }
 
 QString ScLcms2ColorProfileImpl::productDescription() const
@@ -126,4 +122,4 @@
 	done = cmsSaveProfileToMem(m_profileHandle, profileData.data(), &bytesNeeded);
 
 	return done;
-}
+}




More information about the scribus-commit mailing list