summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-12 08:55:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-12 09:22:20 +0100
commitb480819dc4133f587eb960143128a7d85a44da9a (patch)
treeb7677157cbae13afc4c87e4621545bffbc61c726 /sal/osl
parentb271cc46851c61ddef20dc869bf339c857f76b18 (diff)
Revert "loplugin:constfields in reportdesign,sal,sax"
This reverts commit d4d37662b090cb237585156a47cd8e1f1cbe2656. Now that we know that making fields has negative side effects like disabling assignment operator generation. Change-Id: Idef4937b89a83d2efbfaf0ab87d059a0143c0164 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90364 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/backtraceapi.cxx2
-rw-r--r--sal/osl/unx/file.cxx4
-rw-r--r--sal/osl/unx/file_impl.hxx4
-rw-r--r--sal/osl/unx/file_path_helper.cxx2
-rw-r--r--sal/osl/unx/file_url.cxx4
-rw-r--r--sal/osl/unx/pipe.cxx2
-rw-r--r--sal/osl/unx/signal.cxx2
-rw-r--r--sal/osl/unx/socket.cxx4
8 files changed, 12 insertions, 12 deletions
diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx
index 93ca94da5ff2..d11128353d47 100644
--- a/sal/osl/unx/backtraceapi.cxx
+++ b/sal/osl/unx/backtraceapi.cxx
@@ -30,7 +30,7 @@ struct FreeGuard {
~FreeGuard() { std::free(buffer); }
- char ** const buffer;
+ char ** buffer;
};
}
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index aa293f914d74..d8396f6279b6 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -89,7 +89,7 @@ struct FileHandle_Impl
KIND_FD = 1,
KIND_MEM = 2
};
- int const m_kind;
+ int m_kind;
/** State
*/
State m_state;
@@ -161,7 +161,7 @@ struct FileHandle_Impl
class Guard
{
- pthread_mutex_t * const m_mutex;
+ pthread_mutex_t *m_mutex;
public:
explicit Guard(pthread_mutex_t *pMutex);
diff --git a/sal/osl/unx/file_impl.hxx b/sal/osl/unx/file_impl.hxx
index eadb1257a068..ed8a93ea5c9d 100644
--- a/sal/osl/unx/file_impl.hxx
+++ b/sal/osl/unx/file_impl.hxx
@@ -28,8 +28,8 @@ struct DirectoryItem_Impl
{
sal_Int32 m_RefCount;
- rtl_String * const m_strFilePath; /* holds native file name */
- unsigned char const m_DType;
+ rtl_String * m_strFilePath; /* holds native file name */
+ unsigned char m_DType;
explicit DirectoryItem_Impl(
rtl_String * strFilePath, unsigned char DType = 0);
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 163deb0c2493..a0ef13f9503d 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -220,7 +220,7 @@ private:
}
private:
- OUString const m_path_list;
+ OUString m_path_list;
const sal_Unicode* m_end;
const sal_Unicode m_separator;
const sal_Unicode* m_path_segment_begin;
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 9dade1c3f09a..5e99d5306cdc 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -110,7 +110,7 @@ namespace {
class UnicodeToTextConverter_Impl
{
- rtl_UnicodeToTextConverter const m_converter;
+ rtl_UnicodeToTextConverter m_converter;
UnicodeToTextConverter_Impl()
: m_converter (rtl_createUnicodeToTextConverter (osl_getThreadTextEncoding()))
@@ -865,7 +865,7 @@ namespace
{
class TextToUnicodeConverter_Impl
{
- rtl_TextToUnicodeConverter const m_converter;
+ rtl_TextToUnicodeConverter m_converter;
TextToUnicodeConverter_Impl()
: m_converter (rtl_createTextToUnicodeConverter (osl_getThreadTextEncoding()))
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index 153db04d99fa..ec9fe4b9d5ca 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -43,7 +43,7 @@ static oslPipe osl_psz_createPipe(const char *pszPipeName, oslPipeOptions Option
static struct
{
- int const errcode;
+ int errcode;
oslPipeError error;
} const PipeError[]= {
{ 0, osl_Pipe_E_None }, /* no error */
diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx
index 55d09b4f6249..00c3ca3f522e 100644
--- a/sal/osl/unx/signal.cxx
+++ b/sal/osl/unx/signal.cxx
@@ -77,7 +77,7 @@ extern "C" using Handler1 = void (*)(int);
extern "C" using Handler2 = void (*)(int, siginfo_t *, void *);
struct SignalAction
{
- int const Signal;
+ int Signal;
int Action;
Handler1 Handler;
bool siginfo; // Handler's type is Handler2
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx
index d3b192f4e1f1..239a8dcb248d 100644
--- a/sal/osl/unx/socket.cxx
+++ b/sal/osl/unx/socket.cxx
@@ -207,8 +207,8 @@ static const sal_uInt32 SocketDirection[]= {
static const struct
{
- int const errcode;
- oslSocketError const error;
+ int errcode;
+ oslSocketError error;
} SocketError[]= {
{ 0, osl_Socket_E_None }, /* no error */
{ ENOTSOCK, osl_Socket_E_NotSocket }, /* Socket operation on non-socket */