diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 14:34:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 20:05:19 (GMT) |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Tests/FindGTK2/gtkmm | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | CMake-d9fd2f5402eeaa345691313658e02b51038f570b.zip CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.bz2 |
Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.
* If you reached this commit for a line in `git blame`, re-run the blame
operation starting at the parent of this commit to see older history
for the content.
* See the parent commit for instructions to rebase a change across this
style transition commit.
Diffstat (limited to 'Tests/FindGTK2/gtkmm')
-rw-r--r-- | Tests/FindGTK2/gtkmm/helloworld.cpp | 24 | ||||
-rw-r--r-- | Tests/FindGTK2/gtkmm/helloworld.h | 12 | ||||
-rw-r--r-- | Tests/FindGTK2/gtkmm/main.cpp | 12 |
3 files changed, 24 insertions, 24 deletions
diff --git a/Tests/FindGTK2/gtkmm/helloworld.cpp b/Tests/FindGTK2/gtkmm/helloworld.cpp index 535f44a..5f4e0ae 100644 --- a/Tests/FindGTK2/gtkmm/helloworld.cpp +++ b/Tests/FindGTK2/gtkmm/helloworld.cpp @@ -2,21 +2,21 @@ #include <iostream> HelloWorld::HelloWorld() - : m_button("Hello World") // creates a new button with label "Hello World". + : m_button("Hello World") // creates a new button with label "Hello World". { - // Sets the border width of the window. - set_border_width(10); + // Sets the border width of the window. + set_border_width(10); - // When the button receives the "clicked" signal, it will call the - // on_button_clicked() method defined below. - m_button.signal_clicked().connect(sigc::mem_fun(*this, - &HelloWorld::on_button_clicked)); + // When the button receives the "clicked" signal, it will call the + // on_button_clicked() method defined below. + m_button.signal_clicked().connect( + sigc::mem_fun(*this, &HelloWorld::on_button_clicked)); - // This packs the button into the Window (a container). - add(m_button); + // This packs the button into the Window (a container). + add(m_button); - // The final step is to display this newly created widget... - m_button.show(); + // The final step is to display this newly created widget... + m_button.show(); } HelloWorld::~HelloWorld() @@ -25,5 +25,5 @@ HelloWorld::~HelloWorld() void HelloWorld::on_button_clicked() { - std::cout << "Hello World" << std::endl; + std::cout << "Hello World" << std::endl; } diff --git a/Tests/FindGTK2/gtkmm/helloworld.h b/Tests/FindGTK2/gtkmm/helloworld.h index ab9a076..ae9af17 100644 --- a/Tests/FindGTK2/gtkmm/helloworld.h +++ b/Tests/FindGTK2/gtkmm/helloworld.h @@ -6,15 +6,15 @@ class HelloWorld : public Gtk::Window { public: - HelloWorld(); - virtual ~HelloWorld(); + HelloWorld(); + virtual ~HelloWorld(); protected: - //Signal handlers: - void on_button_clicked(); + // Signal handlers: + void on_button_clicked(); - //Member widgets: - Gtk::Button m_button; + // Member widgets: + Gtk::Button m_button; }; #endif // GTKMM_EXAMPLE_HELLOWORLD_H diff --git a/Tests/FindGTK2/gtkmm/main.cpp b/Tests/FindGTK2/gtkmm/main.cpp index 566a4bd..1637da2 100644 --- a/Tests/FindGTK2/gtkmm/main.cpp +++ b/Tests/FindGTK2/gtkmm/main.cpp @@ -1,13 +1,13 @@ #include "helloworld.h" #include <gtkmm.h> -int main(int argc, char *argv[]) +int main(int argc, char* argv[]) { - Gtk::Main kit(argc, argv); + Gtk::Main kit(argc, argv); - HelloWorld helloworld; - //Shows the window and returns when it is closed. - Gtk::Main::run(helloworld); + HelloWorld helloworld; + // Shows the window and returns when it is closed. + Gtk::Main::run(helloworld); - return 0; + return 0; } |