lib: replace use of static_cast for writable databases
authorDavid Bremner <david@tethera.net>
Sun, 26 Jul 2020 23:31:36 +0000 (20:31 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 28 Jul 2020 11:47:58 +0000 (08:47 -0300)
commita09293793f43b93b7008dd361b192199ad528fca
tree3655943388b32c142f8783df12368863d5783b18
parentd7d4c729ab3b74eaaebe64cb8c7383b0ea06cec0
lib: replace use of static_cast for writable databases

static_cast is a bit tricky to understand and error prone, so add a
second pointer to (potentially the same) Xapian database object that
we know has the right subclass.
lib/add-message.cc
lib/config.cc
lib/database-private.h
lib/database.cc
lib/directory.cc
lib/message.cc