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

Unified Diff: installer/src/installer-lib/DLL.cpp

Issue 6202981292703744: Whole installer (Closed)
Patch Set: Created June 24, 2014, 7:27 a.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
Index: installer/src/installer-lib/DLL.cpp
===================================================================
--- a/installer/src/installer-lib/DLL.cpp
+++ b/installer/src/installer-lib/DLL.cpp
@@ -1,13 +1,12 @@
/**
- * \file abp_ca.cpp Top-level source for custom actions. Includes DLL initialization.
- */
+* \file abp_ca.cpp Top-level source for custom actions. Includes DLL initialization.
+*/
#include "DLL.h"
#include <stdexcept>
std::shared_ptr< DLL_Module > DLL_Module::singleton = 0 ;
-DLL_Module &
-DLL_Module::module()
+DLL_Module & DLL_Module::module()
{
if ( singleton )
{
@@ -17,11 +16,10 @@
}
/**
- * The attachment function is the _de facto_ equivalent of initialization. Under ordinary circumstances, this should
- * only be called once, and called before everything else.
- */
-void
-DLL_Module::attach( HINSTANCE handle )
+* The attachment function is the _de facto_ equivalent of initialization. Under ordinary circumstances, this should
+* only be called once, and called before everything else.
+*/
+void DLL_Module::attach( HINSTANCE handle )
{
if ( singleton )
{
@@ -31,25 +29,23 @@
}
/**
- * The detachment function is the _de facto_ equivalent of finalization. Under ordinary circumstances, this should
- * only be called once, and called after everything else.
- */
-void
-DLL_Module::detach()
+* The detachment function is the _de facto_ equivalent of finalization. Under ordinary circumstances, this should
+* only be called once, and called after everything else.
+*/
+void DLL_Module::detach()
{
singleton.reset();
}
/**
- * Since this class is mostly a replacement for a global variable, it's no surprising the constructor is almost trivial.
- */
+* Since this class is mostly a replacement for a global variable, it's no surprising the constructor is almost trivial.
+*/
DLL_Module::DLL_Module( HINSTANCE handle )
: handle( handle )
{
}
-std::wstring
-DLL_Module::name()
+std::wstring DLL_Module::name()
{
if ( _name )
return *_name ;

Powered by Google App Engine
This is Rietveld