Browse Source

Removed and as per the TODO's

merge-requests/365/head
Akshay Shekhervoldyman666@gmail.com 10 years ago
parent
commit
168698fae4
  1. 3
      src/cmake.cc
  2. 2
      src/config.cc
  3. 2
      src/juci.cc
  4. 2
      src/menu.cc
  5. 3
      src/notebook.cc
  6. 3
      src/source_clang.cc
  7. 3
      src/terminal.cc
  8. 5
      src/window.cc

3
src/cmake.cc

@ -5,9 +5,6 @@
#include "terminal.h" #include "terminal.h"
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
CMake::CMake(const boost::filesystem::path &path) { CMake::CMake(const boost::filesystem::path &path) {
const auto find_cmake_project=[this](const boost::filesystem::path &cmake_path) { const auto find_cmake_project=[this](const boost::filesystem::path &cmake_path) {
for(auto &line: filesystem::read_lines(cmake_path)) { for(auto &line: filesystem::read_lines(cmake_path)) {

2
src/config.cc

@ -6,8 +6,6 @@
#include "filesystem.h" #include "filesystem.h"
#include "terminal.h" #include "terminal.h"
using namespace std; //TODO: remove
Config::Config() { Config::Config() {
std::vector<std::string> environment_variables = {"JUCI_HOME", "HOME", "AppData"}; std::vector<std::string> environment_variables = {"JUCI_HOME", "HOME", "AppData"};
char *ptr = nullptr; char *ptr = nullptr;

2
src/juci.cc

@ -5,8 +5,6 @@
#include "config.h" #include "config.h"
#include "logging.h" #include "logging.h"
using namespace std; //TODO: remove
int Application::on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine> &cmd) { int Application::on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine> &cmd) {
Glib::set_prgname("juci"); Glib::set_prgname("juci");
Glib::OptionContext ctx("[PATH ...]"); Glib::OptionContext ctx("[PATH ...]");

2
src/menu.cc

@ -3,8 +3,6 @@
#include <string> #include <string>
#include <iostream> #include <iostream>
using namespace std; //TODO: remove
//TODO: if Ubuntu ever gets fixed, cleanup the Ubuntu specific code //TODO: if Ubuntu ever gets fixed, cleanup the Ubuntu specific code
Menu::Menu() { Menu::Menu() {
auto accels=Config::get().menu.keys; auto accels=Config::get().menu.keys;

3
src/notebook.cc

@ -11,9 +11,6 @@
#include "gtksourceview-3.0/gtksourceview/gtksourcemap.h" #include "gtksourceview-3.0/gtksourceview/gtksourcemap.h"
#endif #endif
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
namespace sigc { namespace sigc {
#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor> template <typename Functor>

3
src/source_clang.cc

@ -2,9 +2,6 @@
#include "config.h" #include "config.h"
#include "terminal.h" #include "terminal.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
namespace sigc { namespace sigc {
#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor> template <typename Functor>

3
src/terminal.cc

@ -3,9 +3,6 @@
#include "logging.h" #include "logging.h"
#include "config.h" #include "config.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
Terminal::InProgress::InProgress(const std::string& start_msg): stop(false) { Terminal::InProgress::InProgress(const std::string& start_msg): stop(false) {
waiting_print.connect([this](){ waiting_print.connect([this](){
Terminal::get().async_print(line_nr-1, "."); Terminal::get().async_print(line_nr-1, ".");

5
src/window.cc

@ -8,9 +8,6 @@
#include "dialogs.h" #include "dialogs.h"
#include "filesystem.h" #include "filesystem.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
namespace sigc { namespace sigc {
#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor> template <typename Functor>
@ -813,7 +810,7 @@ void Window::set_tab_entry() {
char tab_char=0; char tab_char=0;
unsigned tab_size=0; unsigned tab_size=0;
try { try {
tab_size = static_cast<unsigned>(stoul(entry_tab_size_it->get_text())); tab_size = static_cast<unsigned>(std::stoul(entry_tab_size_it->get_text()));
std::string tab_char_string=entry_tab_char_it->get_text(); std::string tab_char_string=entry_tab_char_it->get_text();
std::transform(tab_char_string.begin(), tab_char_string.end(), tab_char_string.begin(), ::tolower); std::transform(tab_char_string.begin(), tab_char_string.end(), tab_char_string.begin(), ::tolower);
if(tab_char_string=="space") if(tab_char_string=="space")

Loading…
Cancel
Save