From 403fdaba8a2c3b450dbe8b4b26d1d777ab32e04e Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 15 Aug 2014 21:52:03 +0200 Subject: [PATCH] oox: sort namespaces in generated header Otherwise it's next to impossible to reasonably diff the generated code after a change. Change-Id: I13f98532535bfe3f4915677cb3346300f25e0cfa --- oox/source/token/namespaces.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/token/namespaces.pl b/oox/source/token/namespaces.pl index faeaad9016aa..abbb70814255 100644 --- a/oox/source/token/namespaces.pl +++ b/oox/source/token/namespaces.pl @@ -82,7 +82,7 @@ $shift = 16; print ( IDFILE "const size_t NMSP_SHIFT = $shift;\n" ); $i = 1; -foreach( keys( %namespaces ) ) +foreach( sort( keys( %namespaces ) ) ) { print( IDFILE "const sal_Int32 NMSP_$_ = $i << NMSP_SHIFT;\n" ); $id = $i << $shift;