Skip to content

Commit

Permalink
Fix some warnings abort variables shadowing other variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uli Schlachter committed Apr 9, 2010
1 parent d2a674d commit 2da5345
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
5 changes: 5 additions & 0 deletions CHANGES.355
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

Changes between releases are documented here.

**** Changes from 2010.04.09 (schlachter)

- Fix some warnings abort variables shadowing other variables.
Affects: oflog/include/dcmtk/oflog/spi/logevent.h

**** Changes from 2010.03.31 (onken)

- Make configure script reflect the recent changes to configure.in regarding
Expand Down
66 changes: 33 additions & 33 deletions oflog/include/dcmtk/oflog/spi/logevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,49 +41,49 @@ namespace log4cplus {
/**
* Instantiate a LoggingEvent from the supplied parameters.
*
* @param logger The logger of this event.
* @param ll The LogLevel of this event.
* @param message The message of this event.
* @param filename Name of file where this event has occurred, can be NULL.
* @param line Line number in file specified by
* the <code>filename</code> parameter.
* @param logger_arg The logger of this event.
* @param ll_arg The LogLevel of this event.
* @param message_arg The message of this event.
* @param filename_arg Name of file where this event has occurred, can be NULL.
* @param line_arg Line number in file specified by
* the <code>filename</code> parameter.
*/
InternalLoggingEvent(const log4cplus::tstring& logger,
LogLevel ll,
const log4cplus::tstring& message,
const char* filename,
int line)
: message(message),
loggerName(logger),
ll(ll),
InternalLoggingEvent(const log4cplus::tstring& logger_arg,
LogLevel ll_arg,
const log4cplus::tstring& message_arg,
const char* filename_arg,
int line_arg)
: message(message_arg),
loggerName(logger_arg),
ll(ll_arg),
ndc(),
thread(),
timestamp(log4cplus::helpers::Time::gettimeofday()),
file( ( filename
? LOG4CPLUS_C_STR_TO_TSTRING(filename)
file( ( filename_arg
? LOG4CPLUS_C_STR_TO_TSTRING(filename_arg)
: log4cplus::tstring()) ),
line(line),
line(line_arg),
threadCached(false),
ndcCached(false)
{
}

InternalLoggingEvent(const log4cplus::tstring& logger,
LogLevel ll,
const log4cplus::tstring& ndc,
const log4cplus::tstring& message,
const log4cplus::tstring& thread,
log4cplus::helpers::Time time,
const log4cplus::tstring& file,
int line)
: message(message),
loggerName(logger),
ll(ll),
ndc(ndc),
thread(thread),
timestamp(time),
file(file),
line(line),
InternalLoggingEvent(const log4cplus::tstring& logger_arg,
LogLevel ll_arg,
const log4cplus::tstring& ndc_arg,
const log4cplus::tstring& message_arg,
const log4cplus::tstring& thread_arg,
log4cplus::helpers::Time time_arg,
const log4cplus::tstring& file_arg,
int line_arg)
: message(message_arg),
loggerName(logger_arg),
ll(ll_arg),
ndc(ndc_arg),
thread(thread_arg),
timestamp(time_arg),
file(file_arg),
line(line_arg),
threadCached(true),
ndcCached(true)
{
Expand Down

0 comments on commit 2da5345

Please sign in to comment.