Changeset 1024 for trunk


Ignore:
Timestamp:
Jan 11, 2010, 12:33:34 AM (12 years ago)
Author:
Peter Johansson
Message:

extracting format from Configuration inside function 'image' rather than passing Configuration::instance().image_format() every single time. refs #279

Location:
trunk/lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r1017 r1024  
    192192      ss << imagedir << "/index";
    193193    os << "<p class=\"plot\">\n";
    194     os << image(Configuration::instance().image_format(), ss.str());
     194    os << image(ss.str());
    195195    os << "</p>\n";
    196196
  • trunk/lib/File.cc

    r1007 r1024  
    384384      ss << imagefile;
    385385    os << "<p class=\"plot\">\n";
    386     os << image(Configuration::instance().image_format(), ss.str());
     386    os << image(ss.str());
    387387    os << "</p>\n";
    388388
  • trunk/lib/first_page.cc

    r1007 r1024  
    233233    stats.plot_summary(name);
    234234    os << "<div class=\"main\">\n";
    235     os << image(Configuration::instance().image_format(), name);
     235    os << image(name);
    236236    os << "</div>";
    237237
  • trunk/lib/html_utility.cc

    r1008 r1024  
    6262
    6363 
    64   std::string image(const std::string& format, const std::string& name)
     64  std::string image(const std::string& name)
    6565  {
    6666    std::ostringstream os;
     67    const std::string& format = Configuration::instance().image_format();
    6768    if (format=="svg")
    6869      os << "<object data='" << name << ".svg' type='image/svg+xml'"
  • trunk/lib/html_utility.h

    r1005 r1024  
    5050  /**
    5151   */
    52   std::string image(const std::string& format, const std::string& name);
     52  std::string image(const std::string& name);
    5353
    5454  ///
Note: See TracChangeset for help on using the changeset viewer.