Commit 1aecc9f9 authored by Daniel Elstner's avatar Daniel Elstner
Browse files

Move function to the global namespace. Putting it inside an anonymous

* src/filetree.cc (regexxer_create_file_tree): Move function to
the global namespace.  Putting it inside an anonymous namespace
just obfuscated the code, as this function is exported for the
world to see.
* src/statusline.cc (regexxer_create_status_line): Likewise.

svn path=/trunk/; revision=633
parent 69a07a23
2007-01-14 Daniel Elstner <daniel.kitta@gmail.com>
* src/filetree.cc (regexxer_create_file_tree): Move function to
the global namespace. Putting it inside an anonymous namespace
just obfuscated the code, as this function is exported for the
world to see.
* src/statusline.cc (regexxer_create_status_line): Likewise.
2007-01-13 Daniel Elstner <daniel.kitta@gmail.com>
* MAINTAINERS: Add file for the benefit of sysadmin tools.
......
......@@ -31,11 +31,9 @@
#include <config.h>
using namespace Regexxer::FileTreePrivate;
namespace
{
/*
* Custom widget creation function for libglade.
*/
extern "C"
GtkWidget* regexxer_create_file_tree(char*, char*, char*, int, int)
{
......@@ -51,11 +49,11 @@ GtkWidget* regexxer_create_file_tree(char*, char*, char*, int, int)
}
}
} // anonymous namespace
namespace Regexxer
{
using namespace Regexxer::FileTreePrivate;
/**** Regexxer::FileTree ***************************************************/
FileTree::FileTree()
......
......@@ -27,10 +27,9 @@
#include <sstream>
#include <stdexcept>
namespace
{
/*
* Custom widget creation function for libglade.
*/
extern "C"
GtkWidget* regexxer_create_status_line(char*, char*, char*, int, int)
{
......@@ -46,9 +45,6 @@ GtkWidget* regexxer_create_status_line(char*, char*, char*, int, int)
}
}
} // anonymous namespace
namespace Regexxer
{
......@@ -79,7 +75,6 @@ private:
void on_label_style_changed(const Glib::RefPtr<Gtk::Style>& previous_style);
};
CounterBox::CounterBox(const Glib::ustring& label)
:
label_index_ (0),
......@@ -236,7 +231,6 @@ void CounterBox::on_label_style_changed(const Glib::RefPtr<Gtk::Style>&)
recalculate_label_width();
}
/**** Regexxer::StatusLine *************************************************/
StatusLine::StatusLine()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment