Remove unnecessary use of temporary variable.
---
 src/vikmapslayer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/vikmapslayer.c b/src/vikmapslayer.c
index f9977bc..473f3a6 100644
--- a/src/vikmapslayer.c
+++ b/src/vikmapslayer.c
@@ -838,8 +838,7 @@ static void maps_layer_draw ( VikMapsLayer *vml, 
VikViewport *vvp )
     VikCoord ul, br;
 
     /* Copyright */
-    gchar *copyright = vik_map_source_get_copyright ( 
MAPS_LAYER_NTH_TYPE(vml->maptype) );
-    vik_viewport_add_copyright ( vvp, copyright );
+    vik_viewport_add_copyright ( vvp, vik_map_source_get_copyright ( 
MAPS_LAYER_NTH_TYPE(vml->maptype) ) );
 
     /* get corner coords */
     if ( vik_viewport_get_coord_mode ( vvp ) == VIK_COORD_UTM && ! 
vik_viewport_is_one_zone ( vvp ) ) {
-- 
1.7.2.3


------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to