summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2018-07-29 13:22:26 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-29 13:47:03 +0200
commit0b4b16b572470039d5a4c0661a226f1d852c8a3e (patch)
tree634eb857748ad5bdce996571f60f71342b16fa92 /dbaccess/source
parent22ab116a9cad1390c20fd6a0a3a6ddbccb2f760b (diff)
Merge identical conditional branches in OContentHelper
Change-Id: Ifaf72d1151f32dc99dbe76838f88090ee2fd7b15 Reviewed-on: https://gerrit.libreoffice.org/58269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/core/dataaccess/ContentHelper.cxx14
1 files changed, 1 insertions, 13 deletions
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx
index 39f341ddb901..5f8bb59e0b59 100644
--- a/dbaccess/source/core/dataaccess/ContentHelper.cxx
+++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx
@@ -332,19 +332,7 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue
{
const PropertyValue& rValue = pValues[ n ];
- if ( rValue.Name == "ContentType" )
- {
- // Read-only property!
- aRet[ n ] <<= IllegalAccessException("Property is read-only!",
- static_cast< cppu::OWeakObject * >( this ) );
- }
- else if ( rValue.Name == "IsDocument" )
- {
- // Read-only property!
- aRet[ n ] <<= IllegalAccessException("Property is read-only!",
- static_cast< cppu::OWeakObject * >( this ) );
- }
- else if ( rValue.Name == "IsFolder" )
+ if ( rValue.Name == "ContentType" || rValue.Name == "IsDocument" || rValue.Name == "IsFolder" )
{
// Read-only property!
aRet[ n ] <<= IllegalAccessException("Property is read-only!",