[gnote] More boost cleanup



commit a01a1288ba72684ae49dfd8489d25dc2f639ebf8
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Jan 14 21:48:37 2017 +0200

    More boost cleanup

 src/addininfo.cpp                          |   10 ++++------
 src/addinmanager.cpp                       |    5 +----
 src/notebooks/notebookapplicationaddin.cpp |    4 +---
 src/notewindow.cpp                         |    2 --
 src/recentchanges.cpp                      |    3 +--
 5 files changed, 7 insertions(+), 17 deletions(-)
---
diff --git a/src/addininfo.cpp b/src/addininfo.cpp
index f419199..e2fa9ca 100644
--- a/src/addininfo.cpp
+++ b/src/addininfo.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013-2016 Aurimas Cernius
+ * Copyright (C) 2013-2017 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,8 +19,6 @@
 
 #include <stdexcept>
 
-#include <boost/lexical_cast.hpp>
-
 #include <glibmm/i18n.h>
 
 #include "base/macros.hpp"
@@ -167,11 +165,11 @@ bool AddinInfo::validate_compatibility(const Glib::ustring & release, const Glib
         return false;
       }
 
-      int this_ver = boost::lexical_cast<int>(parts[0]);
+      int this_ver = STRING_TO_INT(parts[0]);
       parts.clear();
       sharp::string_split(parts, version_info, ":");
-      int ver = boost::lexical_cast<int>(parts[0]);
-      int compat = boost::lexical_cast<int>(parts[2]);
+      int ver = STRING_TO_INT(parts[0]);
+      int compat = STRING_TO_INT(parts[2]);
 
       if(this_ver > ver) {
         // too new
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index da4ad45..1b86248 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2016 Aurimas Cernius
+ * Copyright (C) 2010-2017 Aurimas Cernius
  * Copyright (C) 2009, 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -22,9 +22,6 @@
 
 #include <config.h>
 
-#include <boost/bind.hpp>
-#include <boost/checked_delete.hpp>
-
 #include <glib.h>
 #include <glibmm/i18n.h>
 
diff --git a/src/notebooks/notebookapplicationaddin.cpp b/src/notebooks/notebookapplicationaddin.cpp
index 356426a..b136230 100644
--- a/src/notebooks/notebookapplicationaddin.cpp
+++ b/src/notebooks/notebookapplicationaddin.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011-2015 Aurimas Cernius
+ * Copyright (C) 2011-2015,2017 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -21,8 +21,6 @@
 
 
 
-#include <boost/bind.hpp>
-
 #include <glibmm.h>
 #include <glibmm/i18n.h>
 #include <gtkmm/stock.h>
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index b325efc..d1ab137 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -22,8 +22,6 @@
 #include <config.h>
 #endif
 
-#include <boost/bind.hpp>
-
 #include <glibmm/i18n.h>
 #include <gtkmm/grid.h>
 #include <gtkmm/image.h>
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 43b9ac8..6a9c5a4 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2016 Aurimas Cernius
+ * Copyright (C) 2010-2017 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -23,7 +23,6 @@
 #include <config.h>
 #endif
 
-#include <boost/bind.hpp>
 #include <glibmm/i18n.h>
 #include <gtkmm/alignment.h>
 #include <gtkmm/headerbar.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]