[niepce] rust: remove fwk/base/fractions.hpp implemented in Rust
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] rust: remove fwk/base/fractions.hpp implemented in Rust
- Date: Fri, 6 Oct 2017 02:03:19 +0000 (UTC)
commit 1c27a45d16f844de5bf8ed4e4c91ef1eaf1d369e
Author: Hubert Figuière <hub figuiere net>
Date: Thu Sep 28 22:34:47 2017 -0400
rust: remove fwk/base/fractions.hpp implemented in Rust
src/fwk/base/Makefile.am | 1 -
src/fwk/base/fractions.hpp | 43 ------------------------------------
src/fwk/toolkit/metadatawidget.cpp | 3 +-
3 files changed, 1 insertions(+), 46 deletions(-)
---
diff --git a/src/fwk/base/Makefile.am b/src/fwk/base/Makefile.am
index a0b7a1a..5606edc 100644
--- a/src/fwk/base/Makefile.am
+++ b/src/fwk/base/Makefile.am
@@ -33,7 +33,6 @@ libfwkbase_a_SOURCES = colour.hpp colour.cpp \
autoflag.hpp \
date.hpp date.cpp \
debug.hpp debug.cpp \
- fractions.hpp \
moniker.hpp moniker.cpp \
geometry.hpp geometry.cpp \
singleton.hpp \
diff --git a/src/fwk/toolkit/metadatawidget.cpp b/src/fwk/toolkit/metadatawidget.cpp
index 906cefd..5fce86f 100644
--- a/src/fwk/toolkit/metadatawidget.cpp
+++ b/src/fwk/toolkit/metadatawidget.cpp
@@ -31,7 +31,6 @@
#include "fwk/base/debug.hpp"
#include "fwk/base/autoflag.hpp"
-#include "fwk/base/fractions.hpp"
#include "fwk/utils/exempi.hpp"
#include "fwk/utils/stringutils.hpp"
#include "fwk/toolkit/widgets/ratinglabel.hpp"
@@ -267,7 +266,7 @@ bool MetaDataWidget::set_fraction_dec_data(Gtk::Widget* w,
const std::string str_value = fwk::property_value_get_string(value);
DBG_OUT("set fraction dec %s", str_value.c_str());
std::string frac = str(boost::format("%.1f")
- % fwk_fraction_to_decimal(str_value.c_str()));
+ % ffi::fwk_fraction_to_decimal(str_value.c_str()));
AutoFlag flag(m_update);
static_cast<Gtk::Label*>(w)->set_text(frac);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]