Advertisement
Marcel-

ctemplate.patch

May 8th, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.08 KB | None | 0 0
  1. --- a/backend/wbpublic/sqlide/recordset_text_storage.cpp    2014-03-26 16:47:23.000000000 +0100
  2. +++ b/backend/wbpublic/sqlide/recordset_text_storage.cpp    2014-05-09 01:31:36.099430631 +0200
  3. @@ -205,7 +205,7 @@
  4.        if (!pre_tpl)
  5.          g_warning("Failed to open template file: `%s`", pre_tpl_path.c_str());
  6.        else
  7. -        pre_tpl->ReloadIfChanged();
  8. +        ctemplate::Template::ReloadAllIfChanged();
  9.      }      
  10.      if (g_file_test((name+".post.tpl").c_str(), G_FILE_TEST_EXISTS))
  11.      {
  12. @@ -214,7 +214,7 @@
  13.        if (!post_tpl)
  14.          g_warning("Failed to open template file: `%s`", post_tpl_path.c_str());
  15.        else
  16. -        post_tpl->ReloadIfChanged();
  17. +        ctemplate::Template::ReloadAllIfChanged();
  18.      }
  19.    }    
  20.    
  21. @@ -223,7 +223,7 @@
  22.        throw std::runtime_error(strfmt("Failed to open output file: `%s`", _file_path.c_str()));
  23.    }
  24.  
  25. -  tpl->ReloadIfChanged();
  26. +  ctemplate::Template::ReloadAllIfChanged();
  27.  
  28.    std::auto_ptr<TemplateDictionary> dict(new TemplateDictionary("/"));
  29.    BOOST_FOREACH (const Parameters::value_type &param, _parameters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement