File unobtanium-qt.patch of Package unobtanium

--- src/qt/transactiondesc.cpp	2025-05-01 13:58:43.308911084 +0200
+++ src/qt/transactiondesc.cpp	2025-05-01 15:28:30.600652670 +0200
@@ -243,14 +243,14 @@
     strHTML += "<b>" + tr("Transaction ID") + ":</b> " + TransactionRecord::formatSubTxId(wtx.GetHash(), rec->idx) + "<br>";
 
     // Message from normal bitcoin:URI (bitcoin:123...?message=example)
-    foreach (const PAIRTYPE(string, string)& r, wtx.vOrderForm)
+    for (const std::pair<std::string, std::string>& r : wtx.vOrderForm)
         if (r.first == "Message")
             strHTML += "<br><b>" + tr("Message") + ":</b><br>" + GUIUtil::HtmlEscape(r.second, true) + "<br>";
 
     //
     // PaymentRequest info:
     //
-    foreach (const PAIRTYPE(string, string)& r, wtx.vOrderForm)
+    for (const std::pair<std::string, std::string>& r : wtx.vOrderForm)
     {
         if (r.first == "PaymentRequest")
         {
--- src/qt/paymentserver.cpp	2025-05-01 13:58:43.304911109 +0200
+++ src/qt/paymentserver.cpp	2025-05-01 15:39:34.855633688 +0200
@@ -552,7 +552,7 @@
     QList<std::pair<CScript, CAmount> > sendingTos = request.getPayTo();
     QStringList addresses;
 
-    foreach(const PAIRTYPE(CScript, CAmount)& sendingTo, sendingTos) {
+    for(const std::pair<CScript, CAmount>& sendingTo : sendingTos) {
         // Extract and check destination addresses
         CTxDestination dest;
         if (ExtractDestination(sendingTo.first, dest)) {
openSUSE Build Service is sponsored by