From 7b4ca582fcfd77b20eea5a11bd0e87b39d640e91 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Apr 2015 14:04:08 +0200 Subject: convert RegError to scoped enum Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a --- idlc/source/astenum.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'idlc/source/astenum.cxx') diff --git a/idlc/source/astenum.cxx b/idlc/source/astenum.cxx index e6855694bf4b..14318b7b1787 100644 --- a/idlc/source/astenum.cxx +++ b/idlc/source/astenum.cxx @@ -58,7 +58,7 @@ AstConstant* AstEnum::checkValue(AstExpression* pExpr) bool AstEnum::dump(RegistryKey& rKey) { RegistryKey localKey; - if (rKey.createKey( OStringToOUString(getFullName(), RTL_TEXTENCODING_UTF8 ), localKey)) + if (rKey.createKey( OStringToOUString(getFullName(), RTL_TEXTENCODING_UTF8 ), localKey) != RegError::NO_ERROR) { fprintf(stderr, "%s: warning, could not create key '%s' in '%s'\n", idlc()->getOptions()->getProgramName().getStr(), @@ -92,7 +92,7 @@ bool AstEnum::dump(RegistryKey& rKey) void const * pBlob = aBlob.getBlob(&aBlobSize); if (localKey.setValue(emptyStr, RegValueType::BINARY, - const_cast(pBlob), aBlobSize)) + const_cast(pBlob), aBlobSize) != RegError::NO_ERROR) { fprintf(stderr, "%s: warning, could not set value of key \"%s\" in %s\n", idlc()->getOptions()->getProgramName().getStr(), -- cgit