summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-20 10:34:01 +0200
committerNoel Grandin <noel@peralex.com>2016-04-21 08:32:47 +0200
commit5abc669599001bf888b97c4d3c2715e1fb7523b9 (patch)
tree2407c6fc040a795e6ffc69de02ba940285c04c7f /sal
parent5bb308a9ad16f6002486a60e4a753693818580b6 (diff)
new plugin stylepolice
check for local variables which follow our member field naming convention, which is highly confusing Change-Id: Idacedf7145d09843e96a584237b385f7662eea10
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/process/osl_Thread.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index 653f14486e47..1e3c12ca1f14 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -1762,8 +1762,8 @@ namespace osl_ThreadData
{
// at first, set the data a value
char* pc = new char[2];
- char m_nData = 'm';
- pc[0] = m_nData;
+ char nData = 'm';
+ pc[0] = nData;
pc[1] = '\0';
myThreadData.setData(pc);
@@ -1795,8 +1795,8 @@ namespace osl_ThreadData
{
// at first, set the data a value
char* pc = new char[2];
- char m_nData = 'm';
- memcpy(pc, &m_nData, 1);
+ char nData = 'm';
+ memcpy(pc, &nData, 1);
pc[1] = '\0';
myThreadData.setData(pc);
@@ -1807,8 +1807,8 @@ namespace osl_ThreadData
// aThread1 and aThread2 should have not terminated yet
// setData the second time
char* pc2 = new char[2];
- m_nData = 'o';
- memcpy(pc2, &m_nData, 1);
+ nData = 'o';
+ memcpy(pc2, &nData, 1);
pc2[1] = '\0';
myThreadData.setData(pc2);
@@ -1843,8 +1843,8 @@ namespace osl_ThreadData
void getData_001()
{
char* pc = new char[2];
- char m_nData[] = "i";
- strcpy(pc, m_nData);
+ char nData[] = "i";
+ strcpy(pc, nData);
myThreadData.setData(pc);
myKeyThread aThread1('c');
@@ -1872,8 +1872,8 @@ namespace osl_ThreadData
void getData_002()
{
char* pc = new char[2];
- char m_nData = 'i';
- memcpy(pc, &m_nData, 1);
+ char nData = 'i';
+ memcpy(pc, &nData, 1);
pc[1] = '\0';
myThreadData.setData(pc);
@@ -1884,8 +1884,8 @@ namespace osl_ThreadData
aThread2.create();
// change the value which pc points
- char m_nData2 = 'j';
- memcpy(pc, &m_nData2, 1);
+ char nData2 = 'j';
+ memcpy(pc, &nData2, 1);
pc[1] = '\0';
void* pChar = myThreadData.getData();