diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:19:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:49 +0200 |
commit | 67187c14175778b7939692d6be6e8bab2930be1b (patch) | |
tree | 4de0a861cf58fe5ce82fa9c915b0b73ff73aad89 /sc/source/ui/unoobj/fielduno.cxx | |
parent | 607b6ced16e840dc860bbd3ea934816b6e1c6680 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I9b99327d58a63dfa5c292784cefb4894ee6d7fa8
Diffstat (limited to 'sc/source/ui/unoobj/fielduno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 5f64bfd3f584..08b02223b497 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -946,7 +946,7 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName) { SvxDateField* p = static_cast<SvxDateField*>(pField); if (rName == SC_UNONAME_ISDATE) - return uno::makeAny(sal_True); + return uno::makeAny(true); if (rName == SC_UNONAME_ISFIXED) return uno::makeAny<sal_Bool>(p->GetType() == SVXDATETYPE_FIX); @@ -972,10 +972,10 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName) { // SvxTimeField doesn't have any attributes. if (rName == SC_UNONAME_ISDATE) - return uno::makeAny(sal_False); + return uno::makeAny(false); if (rName == SC_UNONAME_ISFIXED) - return uno::makeAny(sal_False); + return uno::makeAny(false); if (rName == SC_UNONAME_DATETIME) // This is the best we can do. @@ -990,7 +990,7 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName) { SvxExtTimeField* p = static_cast<SvxExtTimeField*>(pField); if (rName == SC_UNONAME_ISDATE) - return uno::makeAny(sal_False); + return uno::makeAny(false); if (rName == SC_UNONAME_ISFIXED) return uno::makeAny<sal_Bool>(p->GetType() == SVXTIMETYPE_FIX); @@ -1212,7 +1212,7 @@ void SAL_CALL ScEditFieldObj::attach( const uno::Reference<text::XTextRange>& xT uno::Reference<text::XText> xText(xTextRange->getText()); if (xText.is()) { - xText->insertTextContent( xTextRange, this, sal_True ); + xText->insertTextContent( xTextRange, this, true ); } } } |