FR 7958 then FR 5718 at Barcelona
Cork → Barcelona → Bratislava
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
21:30FR 5718 to Bratislava leaves the gate
22 h 35 apart on the timetable, overnight
FR 5718 leaves 22 h 35 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.