diff options
Diffstat (limited to 'forms/qa')
-rw-r--r-- | forms/qa/integration/forms/BooleanValidator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/qa/integration/forms/BooleanValidator.java b/forms/qa/integration/forms/BooleanValidator.java index d69ee588390d..dfd3fcaa5eb8 100644 --- a/forms/qa/integration/forms/BooleanValidator.java +++ b/forms/qa/integration/forms/BooleanValidator.java @@ -24,23 +24,23 @@ package integration.forms; +import com.sun.star.uno.AnyConverter; + public class BooleanValidator extends integration.forms.ControlValidator { private boolean m_preventChecked; - private com.sun.star.uno.AnyConverter m_converter; /** Creates a new instance of BooleanValidator */ public BooleanValidator( boolean preventChecked ) { m_preventChecked = preventChecked; - m_converter = new com.sun.star.uno.AnyConverter(); } public String explainInvalid( Object Value ) { try { - if ( m_converter.isVoid( Value ) ) + if ( AnyConverter.isVoid( Value ) ) return "'indetermined' is not an allowed state"; boolean value = ((Boolean)Value).booleanValue(); if ( m_preventChecked && ( value == true ) ) @@ -57,7 +57,7 @@ public class BooleanValidator extends integration.forms.ControlValidator { try { - if ( m_converter.isVoid( Value ) ) + if ( AnyConverter.isVoid( Value ) ) return false; boolean value = ((Boolean)Value).booleanValue(); |