Skip to content

Commit

Permalink
Add namespace keyword for using directive and modify style guide check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dncampo committed Apr 14, 2024
1 parent f7cf9f0 commit 9e5d962
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/style_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ sev[8]=MAYOR; cat[8]='#endif line should be'
sev[9]=MAYOR; cat[9]='Weird number of spaces at line-start'
sev[10]=MAYOR; cat[10]='Blank line at the end of a code block'
sev[11]=MAYOR; cat[11]='Include the directory when naming'
sev[12]=MAYOR; cat[12]='Do not use namespace using-directives'
sev[12]=MINOR; cat[12]='Do not use namespace using-directives'
sev[13]=MAYOR; cat[13]='Is this a non-const reference'
sev[14]=MAYOR; cat[14]='At least two spaces is best between code and comments'
sev[15]=MAYOR; cat[15]='Labels should always be indented at least one space'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/orionld/dds/NgsildPublisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern "C"
#include "orionld/dds/NgsildEntityPubSubTypes.h"
#include "orionld/dds/NgsildEntity.h"

using eprosima::fastdds::dds;
using namespace eprosima::fastdds::dds;



Expand Down
2 changes: 1 addition & 1 deletion src/lib/orionld/dds/NgsildSubscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern "C"

#include "orionld/common/traceLevels.h" // Trace Levels

using eprosima::fastdds::dds;
using namespace eprosima::fastdds::dds;



Expand Down
2 changes: 1 addition & 1 deletion src/lib/orionld/dds/ddsPublish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C"
#include "orionld/dds/NgsildEntity.h"
#include "orionld/dds/NgsildPublisher.h"

using eprosima::fastdds::dds;
using namespace eprosima::fastdds::dds;



Expand Down
6 changes: 3 additions & 3 deletions src/lib/orionld/dds/ddsSubscribe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extern "C"
//
void ddsSubscribe(const char* topicType, const char* topicName)
{
KT_V("Creating a subscription on '%s/%s'"m topicType, topicName);
KT_V("Creating a subscription on '%s/%s'", topicType, topicName);

NgsildSubscriber* subP = new NgsildSubscriber();

Expand All @@ -49,6 +49,6 @@ void ddsSubscribe(const char* topicType, const char* topicName)
subP->run(1400000); // EPROS: one single subscriber ... run forever ...
}

KT_V("Deleting the subscription on '%s/%s'"m topicType, topicName);
KT_V("Deleting the subscription on '%s/%s'", topicType, topicName);
delete subP;
}
}
2 changes: 1 addition & 1 deletion test/functionalTest/ftClient/ftClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern "C"



using eprosima::fastdds::dds;
using namespace eprosima::fastdds::dds;



Expand Down

0 comments on commit 9e5d962

Please sign in to comment.