Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
24febc7c
Commit
24febc7c
authored
Sep 20, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил explicit где советовал cppcheck
parent
6c151936
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
21 additions
and
22 deletions
+21
-22
PostgreSQLInterface.h
extensions/DBServer-PostgreSQL/PostgreSQLInterface.h
+1
-1
DBServer_SQLite.h
extensions/DBServer-SQLite/DBServer_SQLite.h
+1
-1
ComediInterface.h
extensions/IOControl/ComediInterface.h
+1
-1
IOControl.h
extensions/IOControl/IOControl.h
+1
-1
Element.h
extensions/LogicProcessor/Element.h
+2
-2
LProcessor.h
extensions/LogicProcessor/LProcessor.h
+1
-1
RTUStorage.h
extensions/ModbusMaster/RTUStorage.h
+1
-1
SharedMemory.h
extensions/SharedMemory/SharedMemory.h
+1
-1
UDPPacket.h
extensions/UNetUDP/UDPPacket.h
+1
-1
SViewer.h
include/SViewer.h
+1
-1
UExceptions.h
python/lib/pyUniSet/UExceptions.h
+4
-4
DebugExtBuf.h
src/Log/DebugExtBuf.h
+3
-4
UniSetManager.cc
src/ObjectRepository/UniSetManager.cc
+2
-2
UniSetObject.cc
src/ObjectRepository/UniSetObject.cc
+1
-1
No files found.
extensions/DBServer-PostgreSQL/PostgreSQLInterface.h
View file @
24febc7c
...
...
@@ -47,7 +47,7 @@ class PostgreSQLResult
{
public
:
PostgreSQLResult
(){}
PostgreSQLResult
(
const
pqxx
::
result
&
res
);
explicit
PostgreSQLResult
(
const
pqxx
::
result
&
res
);
~
PostgreSQLResult
();
typedef
std
::
vector
<
std
::
string
>
COL
;
...
...
extensions/DBServer-SQLite/DBServer_SQLite.h
View file @
24febc7c
...
...
@@ -136,7 +136,7 @@ class DBServer_SQLite:
{
public
:
DBServer_SQLite
(
UniSetTypes
::
ObjectId
id
,
const
std
::
string
&
prefix
);
DBServer_SQLite
(
const
std
::
string
&
prefix
);
explicit
DBServer_SQLite
(
const
std
::
string
&
prefix
);
virtual
~
DBServer_SQLite
();
/*! глобальная функция для инициализации объекта */
...
...
extensions/IOControl/ComediInterface.h
View file @
24febc7c
...
...
@@ -10,7 +10,7 @@
class
ComediInterface
{
public
:
ComediInterface
(
const
std
::
string
&
dev
);
explicit
ComediInterface
(
const
std
::
string
&
dev
);
~
ComediInterface
();
int
getAnalogChannel
(
int
subdev
,
int
channel
,
int
range
=
0
,
int
aref
=
AREF_GROUND
)
...
...
extensions/IOControl/IOControl.h
View file @
24febc7c
...
...
@@ -171,7 +171,7 @@ class CardList:
{
public
:
CardList
(
int
size
)
:
std
::
vector
<
ComediInterface
*
>
(
size
)
{
}
explicit
CardList
(
int
size
)
:
std
::
vector
<
ComediInterface
*
>
(
size
)
{
}
~
CardList
()
{
...
...
extensions/LogicProcessor/Element.h
View file @
24febc7c
...
...
@@ -13,7 +13,7 @@ class LogicException:
{
public
:
LogicException
()
:
UniSetTypes
::
Exception
(
"LogicException"
)
{}
LogicException
(
const
std
::
string
&
err
)
:
UniSetTypes
::
Exception
(
err
)
{}
explicit
LogicException
(
const
std
::
string
&
err
)
:
UniSetTypes
::
Exception
(
err
)
{}
};
...
...
@@ -31,7 +31,7 @@ class Element
internal
};
Element
(
ElementID
id
)
:
myid
(
id
)
{};
explicit
Element
(
const
ElementID
&
id
)
:
myid
(
id
)
{};
virtual
~
Element
()
{};
...
...
extensions/LogicProcessor/LProcessor.h
View file @
24febc7c
...
...
@@ -95,7 +95,7 @@
class
LProcessor
{
public
:
LProcessor
(
const
std
::
string
&
name
=
""
);
explicit
LProcessor
(
const
std
::
string
&
name
=
""
);
virtual
~
LProcessor
();
void
open
(
const
std
::
string
&
lfile
);
...
...
extensions/ModbusMaster/RTUStorage.h
View file @
24febc7c
...
...
@@ -13,7 +13,7 @@ class ModbusRTUMaster;
class
RTUStorage
{
public
:
RTUStorage
(
ModbusRTU
::
ModbusAddr
addr
);
explicit
RTUStorage
(
ModbusRTU
::
ModbusAddr
addr
);
~
RTUStorage
();
void
poll
(
const
std
::
shared_ptr
<
ModbusRTUMaster
>&
mb
)
...
...
extensions/SharedMemory/SharedMemory.h
View file @
24febc7c
...
...
@@ -308,7 +308,7 @@ class SharedMemory:
struct
HistoryItem
{
HistoryItem
(
size_t
bufsize
=
0
)
:
id
(
UniSetTypes
::
DefaultObjectId
),
buf
(
bufsize
)
{}
explicit
HistoryItem
(
size_t
bufsize
=
0
)
:
id
(
UniSetTypes
::
DefaultObjectId
),
buf
(
bufsize
)
{}
HistoryItem
(
const
UniSetTypes
::
ObjectId
_id
,
const
size_t
bufsize
,
const
long
val
)
:
id
(
_id
),
buf
(
bufsize
,
val
)
{}
inline
void
init
(
unsigned
int
size
,
long
val
)
...
...
extensions/UNetUDP/UDPPacket.h
View file @
24febc7c
...
...
@@ -72,7 +72,7 @@ namespace UniSetUDP
{
UDPMessage
();
UDPMessage
(
UDPPacket
&
p
);
explicit
UDPMessage
(
UDPPacket
&
p
);
size_t
transport_msg
(
UDPPacket
&
p
);
static
size_t
getMessage
(
UDPMessage
&
m
,
UDPPacket
&
p
);
...
...
include/SViewer.h
View file @
24febc7c
...
...
@@ -36,7 +36,7 @@ class SViewer
{
public
:
SViewer
(
const
std
::
string
&
ControllersSection
,
bool
isShort
=
true
);
explicit
SViewer
(
const
std
::
string
&
ControllersSection
,
bool
isShort
=
true
);
virtual
~
SViewer
();
void
view
();
...
...
python/lib/pyUniSet/UExceptions.h
View file @
24febc7c
...
...
@@ -4,8 +4,8 @@
struct
UException
{
UException
()
{}
UException
(
const
std
::
string
&
e
)
:
err
(
e
)
{}
UException
(
const
char
*
e
)
:
err
(
std
::
string
(
e
))
{}
explicit
UException
(
const
std
::
string
&
e
)
:
err
(
e
)
{}
explicit
UException
(
const
char
*
e
)
:
err
(
std
::
string
(
e
))
{}
~
UException
()
{}
const
char
*
getError
()
...
...
@@ -20,7 +20,7 @@ struct UTimeOut:
public
UException
{
UTimeOut
()
:
UException
(
"UTimeOut"
)
{}
UTimeOut
(
const
std
::
string
&
e
)
:
UException
(
e
)
{}
explicit
UTimeOut
(
const
std
::
string
&
e
)
:
UException
(
e
)
{}
~
UTimeOut
()
{}
};
//---------------------------------------------------------------------------
...
...
@@ -28,7 +28,7 @@ struct USysError:
public
UException
{
USysError
()
:
UException
(
"USysError"
)
{}
USysError
(
const
std
::
string
&
e
)
:
UException
(
e
)
{}
explicit
USysError
(
const
std
::
string
&
e
)
:
UException
(
e
)
{}
~
USysError
()
{}
};
//---------------------------------------------------------------------------
...
...
src/Log/DebugExtBuf.h
View file @
24febc7c
...
...
@@ -216,7 +216,7 @@ class debugbuf : public streambuf
{
public
:
///
debugbuf
(
streambuf
*
b
)
explicit
debugbuf
(
streambuf
*
b
)
:
streambuf
(),
sb
(
b
)
{}
protected
:
#ifdef MODERN_STL_STREAMS
...
...
@@ -277,7 +277,7 @@ class stringsigbuf : public streambuf
}
///
stringsigbuf
(
stringbuf
*
b
)
explicit
stringsigbuf
(
stringbuf
*
b
)
:
streambuf
(),
sb
(
b
)
{}
typedef
sigc
::
signal
<
void
,
const
std
::
string
&>
StrBufOverflow_Signal
;
...
...
@@ -362,4 +362,4 @@ struct DebugStream::debugstream_internal
nullbuf
nbuf
;
};
//--------------------------------------------------------------------------
#endif
\ No newline at end of file
#endif
src/ObjectRepository/UniSetManager.cc
View file @
24febc7c
...
...
@@ -42,7 +42,7 @@ using namespace std;
class
MPush
:
public
unary_function
<
const
std
::
shared_ptr
<
UniSetManager
>&
,
bool
>
{
public
:
MPush
(
const
UniSetTypes
::
TransportMessage
&
msg
)
:
msg
(
msg
)
{}
explicit
MPush
(
const
UniSetTypes
::
TransportMessage
&
msg
)
:
msg
(
msg
)
{}
bool
operator
()(
const
std
::
shared_ptr
<
UniSetManager
>&
m
)
const
{
try
...
...
@@ -68,7 +68,7 @@ class MPush: public unary_function< const std::shared_ptr<UniSetManager>& , bool
class
OPush
:
public
unary_function
<
const
std
::
shared_ptr
<
UniSetObject
>&
,
bool
>
{
public
:
OPush
(
const
UniSetTypes
::
TransportMessage
&
msg
)
:
msg
(
msg
)
{}
explicit
OPush
(
const
UniSetTypes
::
TransportMessage
&
msg
)
:
msg
(
msg
)
{}
bool
operator
()(
const
std
::
shared_ptr
<
UniSetObject
>&
o
)
const
{
try
...
...
src/ObjectRepository/UniSetObject.cc
View file @
24febc7c
...
...
@@ -292,7 +292,7 @@ struct CInfo
{
}
CInfo
(
ConfirmMessage
&
cm
)
:
explicit
CInfo
(
ConfirmMessage
&
cm
)
:
sensor_id
(
cm
.
sensor_id
),
value
(
cm
.
value
),
time
(
cm
.
time
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment