[Libreoffice-commits] core.git: jvmfwk/source
Stephan Bergmann
sbergman at redhat.com
Tue Apr 5 15:06:10 UTC 2016
jvmfwk/source/fwkutil.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 6858d559fe1d2a0b7163ad0c04be4f123c68bf21
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Apr 5 17:05:34 2016 +0200
Values read from the Windows registry shouldn't be assert'ed
Change-Id: I1a6cc78025790fa22e91ae91dda5644bdc384ca3
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx
index 9c026de..8bbcf60 100644
--- a/jvmfwk/source/fwkutil.cxx
+++ b/jvmfwk/source/fwkutil.cxx
@@ -83,7 +83,7 @@ bool isAccessibilitySupportDesired()
|| strcmp((char*) arData, "0") == 0)
retVal = false;
else
- assert(0);
+ SAL_WARN("jfw", "bad registry value " << arData);
}
else if (dwType == REG_DWORD)
{
@@ -92,7 +92,8 @@ bool isAccessibilitySupportDesired()
else if (arData[0] == 0)
retVal = false;
else
- assert(0);
+ SAL_WARN(
+ "jfw", "bad registry value " << unsigned(arData[0]));
}
}
}
More information about the Libreoffice-commits
mailing list