From 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Dec 2018 11:37:51 +0200 Subject: loplugin:singlevalfields extend to all static vars Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/misc/mediadescriptor.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'unotools') diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index e0222f90ca89..fdbec07cfa83 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -344,9 +344,7 @@ MediaDescriptor::MediaDescriptor(const css::uno::Sequence< css::beans::PropertyV bool MediaDescriptor::isStreamReadOnly() const { - static bool READONLY_FALLBACK = false; - - bool bReadOnly = READONLY_FALLBACK; + bool bReadOnly = false; // check for explicit readonly state const_iterator pIt = find(MediaDescriptor::PROP_READONLY()); -- cgit