Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/custom-i18n.h

Issue 29329159: Issue #1185 - Fix formatting in installer-lib and its tests (Closed)
Patch Set: Created Oct. 15, 2015, 7:03 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « installer/src/installer-lib/DLL.cpp ('k') | installer/src/installer-lib/database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: installer/src/installer-lib/custom-i18n.h
===================================================================
--- a/installer/src/installer-lib/custom-i18n.h
+++ b/installer/src/installer-lib/custom-i18n.h
@@ -19,29 +19,30 @@
*/
class CustomMessageText
{
- Database & db ;
- const std::wstring component ;
+ Database& db;
+ const std::wstring component;
public:
- CustomMessageText( Database & db, const std::wstring component )
- : db( db ), component( component )
+ CustomMessageText(Database& db, const std::wstring component)
+ : db(db), component(component)
{}
- std::wstring Text( const std::wstring id )
+ std::wstring Text(const std::wstring id)
{
- try {
- View v( db, L"SELECT `content` FROM `AbpUIText` WHERE `component`=? and `id`=?" ) ;
- Record arg( 2 ) ;
- arg.AssignString( 1, component ) ;
- arg.AssignString( 2, id.c_str() ) ;
- Record r( v.First( arg ) ) ;
- return r.ValueString( 1 ) ;
+ try
+ {
+ View v(db, L"SELECT `content` FROM `AbpUIText` WHERE `component`=? and `id`=?");
+ Record arg(2);
+ arg.AssignString(1, component);
+ arg.AssignString(2, id.c_str());
+ Record r(v.First(arg));
+ return r.ValueString(1);
}
- catch( ... )
+ catch (...)
{
- return L" " ;
+ return L" ";
}
}
-} ;
+};
#endif
« no previous file with comments | « installer/src/installer-lib/DLL.cpp ('k') | installer/src/installer-lib/database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld