[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann sbergman at redhat.com
Wed Jun 11 09:05:48 PDT 2014


 extensions/source/scanner/grid.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 81f7aa81bc3a1ab1741a05883ce70ec4849c19e9
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 11 18:05:24 2014 +0200

    Resurrect SaneResId in the place where it is still used
    
    Change-Id: I20f751f6b9fdf683566544aed4ca2ad877abc253

diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx
index 20ec794..c3f02d3 100644
--- a/extensions/source/scanner/grid.cxx
+++ b/extensions/source/scanner/grid.cxx
@@ -30,7 +30,15 @@
 #include <algorithm>
 #include <boost/scoped_array.hpp>
 
-ResId SaneResId( sal_uInt32 );
+namespace {
+
+ResId SaneResId( sal_uInt32 nID )
+{
+    static ResMgr* pResMgr = ResMgr::CreateResMgr( "scn" );
+    return ResId( nID, *pResMgr );
+}
+
+}
 
 /***********************************************************************
  *


More information about the Libreoffice-commits mailing list