summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-16 16:49:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-16 16:49:03 +0200
commite85fcef1af0c96b0e8334bd7b6256e0b02810e43 (patch)
tree71685f34d0d18d4ec1c3a29d289aba9e6c43666b /include/osl
parentea3ef1a2a06b7ac0fa9f618498f9caf48ebc40bd (diff)
Try to fix loplugin:comparisonwithconstant's rewrite-with-macros issue
...that had plagued 2e293a731c1559c9869dfcb32491bc600fc18e4e "new loplugin/rewriter comparisonwithconstant" (in sal/osl/unx/pipe.cxx), and auto-rewrite the remaining occurrences in sal (that the mentioned commit had failed to address, for whatever reason) Change-Id: I3dc3bae8dd92ba8bf576f6e06e7c9ee21f883661
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/file.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/osl/file.hxx b/include/osl/file.hxx
index a8716120e7ea..b005a31b5e76 100644
--- a/include/osl/file.hxx
+++ b/include/osl/file.hxx
@@ -463,7 +463,7 @@ public:
bool getRemoteFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_Remote);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_Remote) != 0;
}
/** Check the removeable flag.
@@ -474,7 +474,7 @@ public:
bool getRemoveableFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_Removeable);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_Removeable) != 0;
}
/** Check the compact disc flag.
@@ -485,7 +485,7 @@ public:
bool getCompactDiscFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_CompactDisc);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_CompactDisc) != 0;
}
/** Check the floppy disc flag.
@@ -496,7 +496,7 @@ public:
bool getFloppyDiskFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_FloppyDisk);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_FloppyDisk) != 0;
}
/** Check the fixed disk flag.
@@ -507,7 +507,7 @@ public:
bool getFixedDiskFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_FixedDisk);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_FixedDisk) != 0;
}
/** Check the RAM disk flag.
@@ -518,7 +518,7 @@ public:
bool getRAMDiskFlag() const
{
- return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_RAMDisk);
+ return (_aInfo.uAttributes & osl_Volume_Attribute_RAMDisk) != 0;
}
/** Determine the total space of a volume device.