summaryrefslogtreecommitdiff
path: root/forms/source/xforms/binding.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/xforms/binding.cxx')
-rw-r--r--forms/source/xforms/binding.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx
index dfcbe0d95d05..a0a3ad536f86 100644
--- a/forms/source/xforms/binding.cxx
+++ b/forms/source/xforms/binding.cxx
@@ -1063,18 +1063,14 @@ Binding::Any_t Binding::getValue( const Type_t& rType )
throw IncompatibleTypesException( EXCEPT( "type unsupported" ) );
// return string value (if present; else return empty Any)
- Binding::Any_t result = Any();
- if(maBindingExpression.hasValue()) {
- rtl::OUString pathExpr(maBindingExpression.getString());
- Convert &rConvert = Convert::get();
- result = rConvert.toAny(pathExpr,rType);
- }
-
-// return maBindingExpression.hasValue()
- // ? Convert::get().toAny( maBindingExpression.getString(), rType )
- // : Any();
+ Binding::Any_t result = Any();
+ if(maBindingExpression.hasValue()) {
+ rtl::OUString pathExpr(maBindingExpression.getString());
+ Convert &rConvert = Convert::get();
+ result = rConvert.toAny(pathExpr,rType);
+ }
- return result;
+ return result;
}
void Binding::setValue( const Any_t& aValue )