Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
desktop
>
mysql-workbench62
> mysql-workbench-ctemplate.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mysql-workbench-ctemplate.patch of Package mysql-workbench62
diff -rup a/backend/wbpublic/sqlide/recordset_text_storage.cpp b/backend/wbpublic/sqlide/recordset_text_storage.cpp --- a/backend/wbpublic/sqlide/recordset_text_storage.cpp 2014-06-20 21:18:09.000000000 +0200 +++ b/backend/wbpublic/sqlide/recordset_text_storage.cpp 2014-07-06 14:01:10.349533464 +0200 @@ -205,7 +205,7 @@ void Recordset_text_storage::do_serializ if (!pre_tpl) g_warning("Failed to open template file: `%s`", pre_tpl_path.c_str()); else - pre_tpl->ReloadIfChanged(); + ctemplate::Template::ReloadAllIfChanged(); } if (g_file_test((name+".post.tpl").c_str(), G_FILE_TEST_EXISTS)) { @@ -214,8 +214,8 @@ void Recordset_text_storage::do_serializ if (!post_tpl) g_warning("Failed to open template file: `%s`", post_tpl_path.c_str()); else - post_tpl->ReloadIfChanged(); - } + ctemplate::Template::ReloadAllIfChanged(); + } } { @@ -223,7 +223,7 @@ void Recordset_text_storage::do_serializ throw std::runtime_error(strfmt("Failed to open output file: `%s`", _file_path.c_str())); } - tpl->ReloadIfChanged(); + ctemplate::Template::ReloadAllIfChanged(); std::auto_ptr<TemplateDictionary> dict(new TemplateDictionary("/")); BOOST_FOREACH (const Parameters::value_type ¶m, _parameters)