Use auto to reduce some verbosity.
This commit is contained in:
@@ -213,7 +213,7 @@ namespace glabels
|
||||
/* But it can be too small, in this case enlarge and center the area */
|
||||
if ( bci->width < (int)(barlen * scalef) )
|
||||
{
|
||||
int wid = (int)( barlen * scalef + 1);
|
||||
auto wid = int( barlen * scalef + 1);
|
||||
bci->xoff -= (wid - bci->width)/2 ;
|
||||
bci->width = wid;
|
||||
/* Can't extend too far on the left */
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace glabels
|
||||
QStringList values = parseLine();
|
||||
if ( !values.isEmpty() )
|
||||
{
|
||||
Record* record = new Record();
|
||||
auto* record = new Record();
|
||||
|
||||
int iField = 0;
|
||||
foreach ( QString value, values )
|
||||
|
||||
Reference in New Issue
Block a user