[Rprotobuf-commits] r497 - pkg/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Jul 10 19:37:20 CEST 2013
Author: murray
Date: 2013-07-10 19:37:20 +0200 (Wed, 10 Jul 2013)
New Revision: 497
Modified:
pkg/src/wrapper_EnumDescriptor.cpp
Log:
Simplify if conditional.
Noticed by: Karl Millar during code review.
Modified: pkg/src/wrapper_EnumDescriptor.cpp
===================================================================
--- pkg/src/wrapper_EnumDescriptor.cpp 2013-07-10 08:16:36 UTC (rev 496)
+++ pkg/src/wrapper_EnumDescriptor.cpp 2013-07-10 17:37:20 UTC (rev 497)
@@ -84,7 +84,7 @@
RCPP_FUNCTION_2(bool,has_enum_name,
Rcpp::XPtr<GPB::EnumDescriptor> d, std::string name){
const GPB::EnumValueDescriptor* evd = d->FindValueByName(name) ;
- return ( ! (evd == NULL));
+ return (evd != NULL);
}
/**
More information about the Rprotobuf-commits
mailing list