From d85c813623f366b6aa48ee088a639309010cbf44 Mon Sep 17 00:00:00 2001 From: Wim Lavrijsen <WLavrijsen@lbl.gov> Date: Fri, 3 Dec 2010 09:55:32 +0000 Subject: [PATCH] improve handling of const-ness of function arguments git-svn-id: http://root.cern.ch/svn/root/trunk@37216 27541ba8-7e3a-0410-8455-c3a389f83636 --- bindings/pyroot/src/Converters.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/pyroot/src/Converters.cxx b/bindings/pyroot/src/Converters.cxx index 3947d32ed2d..86cab2f18da 100644 --- a/bindings/pyroot/src/Converters.cxx +++ b/bindings/pyroot/src/Converters.cxx @@ -1001,7 +1001,7 @@ PyROOT::TConverter* PyROOT::CreateConverter( const std::string& fullType, Long_t return (h->second)( user ); //-- nothing? collect qualifier information - Bool_t isConst = resolvedType.find( "const" ) != std::string::npos; + Bool_t isConst = ti.Property() & G__BIT_ISCONSTANT; // accept const <type>& as converter by value (as python copies most types) if ( isConst && cpd == "&" ) { -- GitLab