coverity#1242429 Explicit null dereferenced

Change-Id: I30f65243995288008fbc41de76bd3f4e2d21b00e
coverity#1242428 Explicit null dereferenced

Change-Id: I107aed3c0fb9f558473777eb5613465c7d60f2be
coverity#1242427 Explicit null dereferenced

Change-Id: I768b9596432b95e0152011951bf366eb41da6b53
coverity#1242422 Unchecked dynamic_cast

Change-Id: If5e8b90f32c167bafeb3649f4bc6c31198635947
coverity#1237350 use our double-locking templates for this

Change-Id: I589468e9663ffd01a237a1684345985396bc4eac
coverity#1224975 Dereference after null check

Change-Id: I89cc31ae5b7c598f16eb3f52d0e4cbce0acf4bc4
coverity#1212506 no need for ? : here

Change-Id: I771a59979ffa628c93421d65b2078292e104eeed
make Korean ReplaceSingleQuote the same as everyone else

I can find no evidence that Korean out of all languages on earth needs a
different default for ReplaceSingleQuote

This appeared in

commit e9f10288e0e5f2519ff3da1e2de2c20a99fd9779
Date:   Mon Jul 5 12:32:15 2004 +0000
    2004/06/07 18:46:25 jb 1.14.78.1: #i25937# Add module settings (migrated from scp2) to xcu source files

but that's a migration of the original
GID_CONFIGURATIONITEM_SWRITER_KOREAN_ENABLE_SINGLEQUOTE which existed in the
original scp (pre scp2) and appeared between OpenOffice.org 1.0 and 1.1.5, but
the cvs repos to explain all that are long dead and there is no sign of a bug
in a bugzilla query, so it suggests this was an internal StarOffice thing.

Change-Id: I14dfe75d28d3ec5a68b262f768c7dbe73e94131d