summaryrefslogtreecommitdiff
path: root/icc/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2008-01-10 15:17:14 +0000
committerPhilipp Lohmann <pl@openoffice.org>2008-01-10 15:17:14 +0000
commita898a5243cd1e1ca5cd525a8f39d9edffc12acc0 (patch)
tree9dcca7dc53b858c9bf46964a6ae9f8987a1d151c /icc/source
parent23d4ebbdcb5a0952132040bbd8f928083789210a (diff)
#i81093# fix a compile problem on solaris
Diffstat (limited to 'icc/source')
-rw-r--r--icc/source/create_sRGB_profile/create_sRGB_profile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
index deece8cdede6..61ef0c617a7e 100644
--- a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
+++ b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
@@ -4,9 +4,9 @@
*
* $RCSfile: create_sRGB_profile.cpp,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: pl $ $Date: 2008-01-10 15:39:13 $
+ * last change: $Author: pl $ $Date: 2008-01-10 16:17:14 $
Derived by beppec56@openoffice.org from various examples
in SampleICC library, the original copyright retained.
@@ -182,7 +182,7 @@ icFloatNumber computeIEC_XYZtoRGB( icFloatNumber indata )
if(indata < 0.0031308)
retval = indata*12.92;
else // apply the other conversion
- retval = 1.055*pow( indata , 1.0/2.4) - 0.055;
+ retval = 1.055*pow( indata , icFloatNumber(1.0/2.4)) - 0.055;
// cout << retval << endl;
return retval;
@@ -554,7 +554,7 @@ int main(int argc, char* argv[])
return EXIT_SUCCESS;
}
- catch (const exception& e)
+ catch (const std::exception& e)
{
cout << myName << ": error: " << e.what() << endl;
return EXIT_FAILURE;