Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 790176
Collapse All | Expand All

(-)a/src/expr.cc (-1 / +2 lines)
Lines 34-39 Link Here
34
#include "expr.h"
34
#include "expr.h"
35
#include "parser.h"
35
#include "parser.h"
36
#include "scope.h"
36
#include "scope.h"
37
#include <memory>
37
namespace ledger {
38
namespace ledger {
Lines 278-284 value_t expr_value(expr_t::ptr_op_t op) Link Here
278
value_t source_command(call_scope_t& args)
279
value_t source_command(call_scope_t& args)
279
{
280
{
280
  std::istream * in = NULL;
281
  std::istream * in = NULL;
281
  scoped_ptr<ifstream> stream;
282
  std::unique_ptr<ifstream> stream;
282
  string pathname;
283
  string pathname;
283
  if (args.has(0)) {
284
  if (args.has(0)) {
(-)a/src/format.h (-2 / +3 lines)
Lines 44-49 Link Here
44
#include "expr.h"
44
#include "expr.h"
45
#include "unistring.h"
45
#include "unistring.h"
46
#include <memory>
46
namespace ledger {
47
namespace ledger {
Lines 65-71 class format_t : public expr_base_t<string>, public noncopyable Link Here
65
    std::size_t                  min_width;
66
    std::size_t                  min_width;
66
    std::size_t                  max_width;
67
    std::size_t                  max_width;
67
    variant<string, expr_t>      data;
68
    variant<string, expr_t>      data;
68
    scoped_ptr<struct element_t> next;
69
    std::unique_ptr<struct element_t> next;
69
    element_t() throw()
70
    element_t() throw()
70
      : supports_flags<>(), type(STRING), min_width(0), max_width(0) {
71
      : supports_flags<>(), type(STRING), min_width(0), max_width(0) {
Lines 103-109 class format_t : public expr_base_t<string>, public noncopyable Link Here
103
    void dump(std::ostream& out) const;
104
    void dump(std::ostream& out) const;
104
  };
105
  };
105
  scoped_ptr<element_t> elements;
106
  std::unique_ptr<element_t> elements;
106
public:
107
public:
107
  static enum elision_style_t {
108
  static enum elision_style_t {

Return to bug 790176