Make use of "using std::xxx" at smallest possible scope.

This commit is contained in:
Jim Evins
2013-12-28 11:49:38 -05:00
parent a46bc43a4d
commit eeb55cf846
5 changed files with 29 additions and 13 deletions
+5 -1
View File
@@ -20,6 +20,8 @@
#include "BarcodeStyle.h"
#include <algorithm>
namespace glabels
{
@@ -152,9 +154,11 @@ namespace glabels
///
QString BarcodeStyle::exampleDigits( int n ) const
{
using std::max;
if ( mCanFreeform )
{
return QString( std::max( n, 1 ), QChar('0') );
return QString( max( n, 1 ), QChar('0') );
}
else
{