Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79411 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-11 01:05:45


Author: jurko
Date: 2012-07-11 01:05:45 EDT (Wed, 11 Jul 2012)
New Revision: 79411
URL: http://svn.boost.org/trac/boost/changeset/79411

Log:
Boost Jam code cleanup.
Text files modified:
   trunk/tools/build/v2/engine/filent.c | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/engine/filent.c
==============================================================================
--- trunk/tools/build/v2/engine/filent.c (original)
+++ trunk/tools/build/v2/engine/filent.c 2012-07-11 01:05:45 EDT (Wed, 11 Jul 2012)
@@ -197,8 +197,7 @@
              * $(p2). But, that seems rather fragile.
              */
             char const * const str = object_str( d->name );
- char const dir_no_slash_raw[ 3 ] = { str[ 0 ], str[ 1 ], 0 };
- OBJECT * const dir_no_slash = object_new( dir_no_slash_raw );
+ OBJECT * const dir_no_slash = object_new_range( str, 2 );
             (*func)( closure, d->name, 1 /* stat()'ed */, d->time );
             (*func)( closure, dir_no_slash, 1 /* stat()'ed */, d->time );
             object_free( dir_no_slash );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk