Mercurial > octave-nkf
diff libgui/graphics/Logger.cc @ 20002:3cc0734283dc
style fixes in Qt graphics code
* Backend.cc, BaseControl.cc, ButtonControl.cc, Canvas.cc,
CheckBoxControl.cc, Container.cc, ContextMenu.cc, EditControl.cc,
Figure.cc, FigureWindow.cc, GLCanvas.cc, KeyMap.cc, ListBoxControl.cc,
Logger.cc, Menu.cc, MouseModeActionGroup.cc, Object.cc,
ObjectFactory.cc, ObjectProxy.cc, Panel.cc, PopupMenuControl.cc,
PushButtonControl.cc, PushTool.cc, QtHandlesUtils.cc,
RadioButtonControl.cc, SliderControl.cc, TextControl.cc, TextEdit.cc,
ToggleButtonControl.cc, ToggleTool.cc, ToolBar.cc, ToolBarButton.cc,
__init_qt__.cc: Follow a few more Octave coding conventions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Mar 2015 12:27:54 -0400 |
parents | 523878f76518 |
children | f0e61a67ad9f |
line wrap: on
line diff
--- a/libgui/graphics/Logger.cc Thu Mar 19 12:25:28 2015 -0400 +++ b/libgui/graphics/Logger.cc Thu Mar 19 12:27:54 2015 -0400 @@ -39,7 +39,7 @@ QMutex* Logger::s_mutex = 0; Logger::Logger (void) - : m_debugEnabled (false) + : m_debugEnabled (false) { QProcessEnvironment pe (QProcessEnvironment::systemEnvironment ()); @@ -51,7 +51,8 @@ { } -Logger* Logger::instance (void) +Logger* +Logger::instance (void) { if (! s_instance) { @@ -63,18 +64,19 @@ } #define STATIC_LOGGER(fun) \ -void Logger::fun (const char* fmt, ...) \ -{ \ - QMutexLocker lock (s_mutex); \ - va_list vl; \ - va_start (vl, fmt); \ - instance ()->fun ## V (fmt, vl); \ - va_end (vl); \ -} + void Logger::fun (const char* fmt, ...) \ + { \ + QMutexLocker lock (s_mutex); \ + va_list vl; \ + va_start (vl, fmt); \ + instance ()->fun ## V (fmt, vl); \ + va_end (vl); \ + } STATIC_LOGGER (debug) -void Logger::debugV (const char* fmt, va_list arg) +void +Logger::debugV (const char* fmt, va_list arg) { if (m_debugEnabled) {