From e368c3fa64ffd1e1d4a1afc0eeca110fc6649bbf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 11 May 2022 16:56:02 +0900 Subject: Fix build with clang. This resolves issue #7. Signed-off-by: Michele Calgaro (cherry picked from commit 57f84ffb5ef47cce6fcd625abb7472c9422d8483) --- krusader/DiskUsage/radialMap/map.cpp | 2 +- krusader/UserAction/useraction.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/krusader/DiskUsage/radialMap/map.cpp b/krusader/DiskUsage/radialMap/map.cpp index fefa701..329b8bc 100644 --- a/krusader/DiskUsage/radialMap/map.cpp +++ b/krusader/DiskUsage/radialMap/map.cpp @@ -326,7 +326,7 @@ RadialMap::Map::paint( unsigned int scaleFactor ) //draw arrow head to indicate undisplayed files/directories TQPointArray pts( 3 ); TQPoint pos, cpos = rect.center(); - int a[3] = { (*it)->start(), (*it)->length(), 0 }; + uint a[3] = { (*it)->start(), (*it)->length(), 0 }; a[2] = a[0] + (a[1] / 2); //assign to halfway between if( a[1] > a_max ) diff --git a/krusader/UserAction/useraction.cpp b/krusader/UserAction/useraction.cpp index 18d6b48..4e412bd 100644 --- a/krusader/UserAction/useraction.cpp +++ b/krusader/UserAction/useraction.cpp @@ -110,7 +110,7 @@ void UserAction::readFromFile( const TQString& filename, ReadMode mode, KrAction // check if the file got the right root-element (ACTION_ROOT) - this finds out if the xml-file read to the DOM is realy an krusader useraction-file if( root.tagName() != ACTION_ROOT ) { KMessageBox::error( MAIN_VIEW, - i18n( "The actionfile's root-element isn't called "ACTION_ROOT", using %1").arg( filename ), + i18n( "The actionfile's root-element isn't called " ACTION_ROOT ", using %1").arg( filename ), i18n( "UserActions - can't read from file!" ) ); delete doc; doc = 0; -- cgit v1.2.3