diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-23 18:30:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-23 18:39:07 +0200 |
commit | 22401181774dfb3882e7ad0335f1267d7885ff48 (patch) | |
tree | cc31d4ef17eef1e76458e47cef8675458c8719ea /extensions/source/scanner | |
parent | 6425f7ff616f9aaad8b4e279385ed3f5ab65bfe2 (diff) |
Improved loplugin:literaltoboolconversion looking into cond. exprs.
...automatic rewriter fixes
Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
Diffstat (limited to 'extensions/source/scanner')
-rw-r--r-- | extensions/source/scanner/sane.cxx | 2 | ||||
-rw-r--r-- | extensions/source/scanner/sane.hxx | 4 | ||||
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index 023aa854344c..29db0ac5fee4 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -907,7 +907,7 @@ int Sane::GetRange( int n, double*& rpDouble ) rpDouble = 0; int nItems, i; - bool bIsFixed = mppOptions[n]->type == SANE_TYPE_FIXED ? sal_True : sal_False; + bool bIsFixed = mppOptions[n]->type == SANE_TYPE_FIXED ? true : false; dbg_msg( "Sane::GetRange of option %s ", mppOptions[n]->name ); if(mppOptions[n]->constraint_type == SANE_CONSTRAINT_RANGE ) diff --git a/extensions/source/scanner/sane.hxx b/extensions/source/scanner/sane.hxx index 0a5a432c4cf2..f94402dd7561 100644 --- a/extensions/source/scanner/sane.hxx +++ b/extensions/source/scanner/sane.hxx @@ -112,9 +112,9 @@ public: ~Sane(); static bool IsSane() - { return pSaneLib ? sal_True : sal_False; } + { return pSaneLib ? true : false; } bool IsOpen() - { return maHandle ? sal_True : sal_False; } + { return maHandle ? true : false; } static int CountDevices() { return nDevices; } static OUString GetName( int n ) diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index 9a4e50cf5484..84c00c223ac7 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -490,7 +490,7 @@ void SaneDlg::InitFields() OUString aOption=mrSane.GetOptionName( i ); bool bInsertAdvanced = mrSane.GetOptionCap( i ) & SANE_CAP_ADVANCED && - ! mpAdvancedBox->IsChecked() ? sal_False : sal_True; + ! mpAdvancedBox->IsChecked() ? false : true; if( mrSane.GetOptionType( i ) == SANE_TYPE_GROUP ) { if( bInsertAdvanced ) |