Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
[Jenkins] clang-format commit (08/01/18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulipdev committed Jan 8, 2018
1 parent 5a4ce9f commit fb9b0d9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 23 deletions.
1 change: 0 additions & 1 deletion library/tulip-core/include/tulip/Observable.h
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ class TLP_SCOPE ObserverHolder {
Observable::unholdObservers();
}
};

}

#endif
6 changes: 2 additions & 4 deletions library/tulip-core/src/PluginLibraryLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ bool PluginLibraryLoader::initPluginDir(PluginLoader *loader, bool recursive) {

// don't print error messages when trying to load Tulip Python
// binary modules
if (lib.compare(0, 1, "_") == 0 ||
lib.find("tulipsip") != std::string::npos) {
if (lib.compare(0, 1, "_") == 0 || lib.find("tulipsip") != std::string::npos) {
success = FindNextFile(hFind, &findData);
continue;
}
Expand Down Expand Up @@ -355,8 +354,7 @@ bool PluginLibraryLoader::initPluginDir(PluginLoader *loader, bool recursive) {

// don't print error messages when trying to load Tulip Python
// binary modules
if (lib.compare(0, 1, "_") == 0 ||
lib.find("tulipsip") != std::string::npos) {
if (lib.compare(0, 1, "_") == 0 || lib.find("tulipsip") != std::string::npos) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/export/CSVExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ bool CsvExport::exportGraph(std::ostream &os) {

case SEMICOLON_SEPARATOR:
fieldSeparator = ';';
break;
break;

default:
fieldSeparator = fieldSeparatorCustom;
Expand Down
4 changes: 2 additions & 2 deletions plugins/import/BibTeX/ImportBibTeX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1897,8 +1897,8 @@ class ImportBibTeX : public ImportModule {
continue;

case '\202': // ł
aKey.replace(k, 2, "l");
continue;
aKey.replace(k, 2, "l");
continue;

case '\204': // ń
case '\206': // ņ
Expand Down
20 changes: 8 additions & 12 deletions software/tulip_perspective/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ struct PluginLoaderToProgress : public PluginLoader {
int max_step;
int step;

PluginLoaderToProgress(PluginProgress* progress = nullptr,
bool debug_output = false)
: _progress(progress), _debug_output(debug_output), max_step(0), step(0) {}
PluginLoaderToProgress(PluginProgress *progress = nullptr, bool debug_output = false)
: _progress(progress), _debug_output(debug_output), max_step(0), step(0) {}

void start(const std::string &path) override {
step = 0;
Expand All @@ -87,12 +86,11 @@ struct PluginLoaderToProgress : public PluginLoader {
if (state) {
_progress->setComment("Plugins successfully loaded");
if (_debug_output)
tlp::debug() << "Plugins successfully loaded" << std::endl;
}
else {
tlp::debug() << "Plugins successfully loaded" << std::endl;
} else {
_progress->setComment(msg);
if (_debug_output)
tlp::debug() << msg << std::endl;
tlp::debug() << msg << std::endl;
}
}

Expand All @@ -108,11 +106,9 @@ struct PluginLoaderToProgress : public PluginLoader {
tlp::debug() << "Loading " << filename << std::endl;
}

void loaded(const tlp::Plugin* plugin,
const std::list<tlp::Dependency> &) override {
void loaded(const tlp::Plugin *plugin, const std::list<tlp::Dependency> &) override {
if (_debug_output)
tlp::debug() << " - Plugin '" << plugin->name()
<< "' registered" << std::endl;
tlp::debug() << " - Plugin '" << plugin->name() << "' registered" << std::endl;
}

void aborted(const std::string &fileName, const std::string &errorMsg) override {
Expand Down Expand Up @@ -224,7 +220,7 @@ int main(int argc, char **argv) {
context->tulipPort = portRegexp.cap(1).toUInt();
} else if (debugPluginLoadRegExp.exactMatch(a))
debugPluginLoad = true;
else if (idRegexp.exactMatch(a)) {
else if (idRegexp.exactMatch(a)) {
context->id = idRegexp.cap(1).toUInt();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QString dumpPath = QDir(QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0))
Expand Down
4 changes: 2 additions & 2 deletions tests/library/tulip/DataSetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ struct Struct {
++nbInstances;
}

Struct(const std::string &val): value(val) {
Struct(const std::string &val) : value(val) {
++nbInstances;
}

~Struct() {
--nbInstances;
}

Struct(const Struct &st): value(st.value) {
Struct(const Struct &st) : value(st.value) {
++nbInstances;
}
};
Expand Down
2 changes: 1 addition & 1 deletion tests/library/tulip/SuperGraphTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ void SuperGraphTest::testInheritance() {
CPPUNIT_ASSERT(g3->existProperty("metric"));
CPPUNIT_ASSERT(g4->existProperty("metric"));

DoubleProperty* m = graph->getProperty<DoubleProperty>("metric");
DoubleProperty *m = graph->getProperty<DoubleProperty>("metric");
CPPUNIT_ASSERT_EQUAL(m, graph->getProperty<DoubleProperty>("metric"));
CPPUNIT_ASSERT_EQUAL(m, g1->getProperty<DoubleProperty>("metric"));
CPPUNIT_ASSERT_EQUAL(m2, g2->getProperty<DoubleProperty>("metric"));
Expand Down

0 comments on commit fb9b0d9

Please sign in to comment.